1
0

Change totp secret datatype from varchar to text

This commit is contained in:
kolaente
2020-05-09 14:45:57 +02:00
parent f30e405229
commit 7e1d0a81bf
2 changed files with 44 additions and 1 deletions

View File

@ -26,7 +26,7 @@ import (
type TOTP struct {
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"-"`
UserID int64 `xorm:"int(11) not null" json:"-"`
Secret string `xorm:"varchar(20) not null" json:"secret"`
Secret string `xorm:"text not null" json:"secret"`
// The totp entry will only be enabled after the user verified they have a working totp setup.
Enabled bool `xorm:"null" json:"enabled"`
// The totp url used to be able to enroll the user later