fix: [cleanup] removed obsolete code

pull/3470/head
iglocska 2018-07-05 15:16:05 +02:00
parent 73c18f8833
commit 00be1ad68a
1 changed files with 0 additions and 5 deletions

View File

@ -1100,11 +1100,6 @@ class User extends AppModel {
));
$this->validator()->remove('password'); // password is too simple, remove validation
$this->save($admin);
// PostgreSQL: update value of auto incremented serial primary key after setting the column by force
if ($dataSource == 'Database/Postgres') {
$sql = "SELECT setval('users_id_seq', (SELECT MAX(id) FROM users));";
$this->query($sql);
}
return $authKey;
}
}