fix: restore soft-deleted users on login
This commit is contained in:
@@ -95,6 +95,11 @@ func TelegramLogin(c *gin.Context) {
|
||||
})
|
||||
return
|
||||
}
|
||||
if err := user.RestoreIfDeleted("telegram", c.ClientIP()); err != nil {
|
||||
common.SysError("failed to restore user: " + err.Error())
|
||||
common.ApiError(c, err)
|
||||
return
|
||||
}
|
||||
setupLogin(&user, c)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user