sync username when changed in either the default profile or the settings page
This commit is contained in:
parent
8b51ffefc0
commit
9660117c70
4 changed files with 1043 additions and 1027 deletions
|
|
@ -455,6 +455,10 @@ function profiles_post(&$a) {
|
|||
dbesc(datetime_convert()),
|
||||
intval(local_user())
|
||||
);
|
||||
$r = q("UPDATE `user` set `username` = '%s' where `uid` = %d limit 1",
|
||||
dbesc($name),
|
||||
intval(local_user())
|
||||
);
|
||||
}
|
||||
|
||||
if($is_default) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue