diff --git a/account/account.go b/account/account.go index cf32df2..f8dad08 100644 --- a/account/account.go +++ b/account/account.go @@ -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: ""}) }