Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Cette révision appartient à :
akuma06 2017-05-06 22:32:02 +02:00
Parent eef84efcb7
révision 3e11300ea6

Voir le fichier

@ -13,7 +13,7 @@ import (
func FindUserByUserName(userName string) (model.User, int, error) { func FindUserByUserName(userName string) (model.User, int, error) {
var user model.User var user model.User
var err error var err error
if db.ORM.Where("name=?", appID, userName).First(&user).RecordNotFound() { if db.ORM.Where("name=?", userName).First(&user).RecordNotFound() {
return user, http.StatusUnauthorized, err return user, http.StatusUnauthorized, err
} }
return user, http.StatusOK, nil return user, http.StatusOK, nil