diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-01-21 17:25:21 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-01-21 17:25:21 -0500 |
commit | 9bf3802bd469521ba3850acde703a8e322eee776 (patch) | |
tree | 1acdf29baa2f687256cf28f6288726f2adcb3313 | |
parent | e359b1bf358e72c0c235857c3e5b7ff3586439a0 (diff) | |
download | GradeBook-9bf3802bd469521ba3850acde703a8e322eee776.tar.gz GradeBook-9bf3802bd469521ba3850acde703a8e322eee776.zip |
make use of Set_New_Password_Non_Web
-rwxr-xr-x | GradeBook_lib.tcl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl index a0e8a5f..fe3e987 100755 --- a/GradeBook_lib.tcl +++ b/GradeBook_lib.tcl @@ -1024,17 +1024,18 @@ proc askToLogin {} { } proc ResetForgottenPassword { permission_list user } { - global script_name + global script_name user_requested - if { [SelectColValue4User UserName $user] eq "" } { - htmlErrorMsg "Cannot reset password for unknown user {$user}" + if { [SelectColValue4User UserName $user_requested] eq "" } { + htmlErrorMsg "Sorry but user {$user_requested} is not registered in this class" + dbg "{$user_requested} is not registered in this class" msg_level_info return } #reset password procedure goes here set newpassword [GenPassword] - UpdateColValue4UserNameNonWeb PasswordHash $user [::md5::md5 -hex $newpassword] - SendNewPassword2User $user $newpassword + Set_New_Password_Non_Web $user_requested $newpassword + SendNewPassword2User $user_requested $newpassword } proc GenPassword { } { |