refactor: OTPDisable needs to return *AccountError

This commit is contained in:
Derrick Hammer 2024-02-15 21:00:08 -05:00
parent 24d491ec4e
commit 16e8c84daa
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ func (s AccountServiceDefault) OTPEnable(userId uint, code string) error {
return s.updateAccountInfo(userId, models.User{OTPEnabled: true})
}
func (s AccountServiceDefault) OTPDisable(userId uint) error {
func (s AccountServiceDefault) OTPDisable(userId uint) *AccountError {
return s.updateAccountInfo(userId, models.User{OTPEnabled: false, OTPSecret: ""})
}