git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb1eabd
)
login/edit: keep login data of named self
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 10 Jul 2018 21:58:52 +0000
(23:58 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 14 Jul 2018 11:47:54 +0000
(13:47 +0200)
Support passwords for admins editing themselves with parameter.
login/edit.php
patch
|
blob
|
history
diff --git
a/login/edit.php
b/login/edit.php
index 46e2447e34e5e5bfc63634a3e01e86130dc9b4bf..e38ebc1c4586657d1f8030c4ff366597eaad1530 100644
(file)
--- a/
login/edit.php
+++ b/
login/edit.php
@@
-4,7
+4,8
@@
if (empty($user = &$User)) {
return;
}
-if (!empty($User['admin']) and !empty($Place['user'])) {
+if (!empty($User['admin'])
+and !empty($Place['user']) and $Place['user'] !== $User['name']) {
$username = strtolower($Place['user']);
unset($user);
$user = [