feat: delete useless
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ type Auth struct {
|
||||
Password string `json:"password"`
|
||||
}
|
||||
|
||||
// CheckAuth checks if authentication information exists
|
||||
// CheckAuth 检查用户信息
|
||||
func CheckAuth(username, password string) (bool, error) {
|
||||
var auth Auth
|
||||
err := db.Select("id").Where(Auth{Username: username, Password: password}).First(&auth).Error
|
||||
|
||||
Reference in New Issue
Block a user