Commit 6e5bad86 authored by dotproj's avatar dotproj

- added cleartext_password for authentication

parent 4d80748c
...@@ -339,6 +339,10 @@ ad_proc -public ad_change_password { ...@@ -339,6 +339,10 @@ ad_proc -public ad_change_password {
error "No user_id supplied" error "No user_id supplied"
} }
if {[db_column_exists users cleartext_password]} {
db_dml cleartext_pwd "update users set cleartext_password = :new_password where user_id = :user_id"
}
set salt [sec_random_token] set salt [sec_random_token]
set new_password [ns_sha1 "$new_password$salt"] set new_password [ns_sha1 "$new_password$salt"]
db_dml password_update {} db_dml password_update {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment