Don't ignore error

This commit is contained in:
techknowlogick 2018-07-05 10:23:00 -04:00 committed by GitHub
parent 7caff96777
commit 25ca551ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,10 @@ func addScratchHash(x *xorm.Engine) error {
for _, tfa := range tfas {
// generate salt
salt, _ := generateSalt()
salt, err := generateSalt()
if err != nil {
return err
}
tfa.ScratchSalt = salt
tfa.ScratchHash = hashToken(tfa.ScratchToken, salt)