Fix registration

This commit is contained in:
grandeljay 2023-02-10 15:51:11 +01:00
parent 43e5ccba3d
commit 26b26cf577
2 changed files with 6 additions and 1 deletions

View file

@ -155,7 +155,7 @@ switch ($step) {
`id` INT PRIMARY KEY AUTO_INCREMENT,
`email` VARCHAR(64) NOT NULL UNIQUE,
`password` VARCHAR(128) NOT NULL,
`password_reset_token` VARCHAR(128) NULL NULL,
`password_reset_token` VARCHAR(128) NULL DEFAULT NULL,
`password_reset_valid_until` DATETIME NOT NULL DEFAULT NOW(),
`last_login` DATETIME NOT NULL DEFAULT NOW(),
`power` INT NOT NULL DEFAULT 1,

View file

@ -26,3 +26,8 @@ SET
`power` = 1
WHERE
`power` = 0;
ALTER TABLE
`users` CHANGE COLUMN `password_reset_token` `password_reset_token` VARCHAR(40) NULL DEFAULT NULL
AFTER
`password`;