fix reference/constlist

This commit is contained in:
dpurbosakti
2025-08-29 14:27:25 +07:00
parent 579ee573c5
commit 0fa7e8ccde
25 changed files with 281 additions and 360 deletions

No files matched your search

@@ -65,9 +65,9 @@ func GenToken(input mu.LoginDto) (*d.Data, error) {
user.LoginAttemptCount++
dg.I.Save(&user)
return nil, d.FieldErrors{"authentication": d.FieldError{Code: "auth-login-incorrect", Message: el.GenMessage("auth-login-incorrect")}}
} else if user.Status_Code == erc.SCBlocked {
} else if user.Status_Code == erc.USCBlocked {
return nil, d.FieldErrors{"authentication": d.FieldError{Code: "auth-login-blocked", Message: el.GenMessage("auth-login-blocked")}}
} else if user.Status_Code == erc.SCNew {
} else if user.Status_Code == erc.USCNew {
return nil, d.FieldErrors{"authentication": d.FieldError{Code: "auth-login-unverified", Message: el.GenMessage("auth-login-unverified")}}
}
+2 -2
View File
@@ -297,7 +297,7 @@ func Block(input e.ReadDetailDto) (*d.Data, error) {
if data != nil {
pl.SetLogInfo(&event, rdDto, "started", "DBUpdate")
data.Status_Code = erc.SCBlocked
data.Status_Code = erc.USCBlocked
if err := tx.Save(&data).Error; err != nil {
return err
}
@@ -343,7 +343,7 @@ func Active(input e.ReadDetailDto) (*d.Data, error) {
if data != nil {
pl.SetLogInfo(&event, rdDto, "started", "DBUpdate")
data.Status_Code = erc.SCActive
data.Status_Code = erc.USCActive
if err := tx.Save(&data).Error; err != nil {
return err
}