Separate invite and password reset token

This commit is contained in:
Johannes Zellner
2021-10-01 12:27:22 +02:00
parent c7b668b3a4
commit cb31e5ae8b
4 changed files with 37 additions and 15 deletions

View File

@@ -28,6 +28,7 @@ CREATE TABLE IF NOT EXISTS users(
twoFactorAuthenticationEnabled BOOLEAN DEFAULT false,
source VARCHAR(128) DEFAULT "",
role VARCHAR(32),
inviteToken VARCHAR(128) DEFAULT "",
resetToken VARCHAR(128) DEFAULT "",
resetTokenCreationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
active BOOLEAN DEFAULT 1,