Commit c15f9ca1 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨 Committed by Matthieu FAURE
Browse files

FIX: improve edit user account

User can modify his account
and use the buttons afterwards

Refs: #898
parent ae0ecd04
......@@ -722,9 +722,9 @@ class UsersController extends AppController
}
} else {
if ($this->Users->save($user)) {
$message = "success";
$this->Auth->setUser($user); //update session
// update username in session
$session = $this->request->session();
$session->write('Auth.User.username', $user->username);
$this->Flash->success(__d("Forms", "Edit.User.profile.success"));
......
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