mirror of https://github.com/MISP/MISP
fix: [cleanup] removed obsolete code
parent
73c18f8833
commit
00be1ad68a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue