GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://kyberia.cz/srv/git/kyberia-bloodline
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
inc
/
eventz
/
set_password.inc
diff --git
a/wwwroot/inc/eventz/set_password.inc
b/wwwroot/inc/eventz/set_password.inc
index 163f0ff60ccf17cb9e6a9fb537dcc07d4f37da12..e58f8749c73b41df2b7c8b2206f3de45eb96149c 100644
(file)
--- a/
wwwroot/inc/eventz/set_password.inc
+++ b/
wwwroot/inc/eventz/set_password.inc
@@
-17,22
+17,14
@@
function set_password() {
}
//old password check
}
//old password check
-
- $q="select * from users where login='$login'";
- $set=$db->query($q);
- $set->next();
- if ($set->getString('password')!=md5($old_password)) {
- $error="bad password";
+ require_once(INCLUDE_DIR."eventz/login.inc");
+ if(!login_check($user_id, $old_password)) {
+ $error="bad password";
return false;
}
return false;
}
- //changing in LDAP
- require(SYSTEM_ROOT.'/inc/ldap.inc');
- LDAPuser::change_pass_forced($user_id,$new_password1);
-
//changing in MySQL
//changing in MySQL
- $password=
md5
($new_password1);
+ $password=
sha1
($new_password1);
$db->query("update users set password='$password' where user_id='$user_id'");
$db->query("update users set password='$password' where user_id='$user_id'");
+ login_check($user_id, $new_password1); //znova se zalogujeme po zmene hesla (kvuli jabberu)
}
}
-
-?>
This page took
0.133586 seconds
and
4
git commands to generate.