Skip to content
Snippets Groups Projects
Commit 25b2a98c authored by Michael Klier's avatar Michael Klier
Browse files

show update profile dialog only when logged in

darcs-hash:20081117154409-23886-d0ad833c6bcf96bcc54f6998397de90ff07b7686.gz
parent 0664e680
No related branches found
No related tags found
No related merge requests found
......@@ -68,9 +68,15 @@ function act_dispatch(){
}
//update user profile
if (($ACT == 'profile') && updateprofile()) {
msg($lang['profchanged'],1);
$ACT = 'show';
if ($ACT == 'profile') {
if(!$_SERVER['REMOTE_USER']) {
$ACT = 'login';
} else {
if(updateprofile()) {
msg($lang['profchanged'],1);
$ACT = 'show';
}
}
}
//save
......
......@@ -724,6 +724,7 @@ function updateprofile() {
if ($changes['pass']) $pass = PMA_blowfish_encrypt($changes['pass'],auth_cookiesalt());
auth_setCookie($_SERVER['REMOTE_USER'],$pass,(bool)$sticky);
return true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment