force passwd change for admin user on creation

pull/217/head
Christophe Vandeplas 2013-06-04 13:22:05 +02:00
parent 38897d9af3
commit 213290961b
1 changed files with 2 additions and 1 deletions

View File

@ -352,7 +352,8 @@ class UsersController extends AppController {
'authkey' => $this->User->generateAuthKey(),
'nids_sid' => 4000000,
'date' => date('YYY-mm-dd'),
'role_id' => 1
'role_id' => 1,
'change_pw' => 1
));
$this->User->validator()->remove('password'); // password is to simple, remove validation
$this->User->save($admin);