Super code can be disabled

This commit is contained in:
skiffer-git
2022-07-02 09:50:25 +08:00
parent 7ffe857f52
commit d7ce455f2f
5 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func Verify(c *gin.Context) {
account = params.AreaCode + params.PhoneNumber
}
if params.VerificationCode == config.Config.Demo.SuperCode {
if config.Config.Demo.UseSuperCode && params.VerificationCode == config.Config.Demo.SuperCode {
log.NewInfo(params.OperationID, "Super Code Verified successfully", account)
data := make(map[string]interface{})
data["account"] = account