mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-14 06:48:45 +00:00
Code convention
This commit is contained in:
1 parent
11f9d738e8
commit
4f2f3c2857
11 files changed
+83
-80
No files matched your search
+2
-2
@@ -150,8 +150,8 @@ func DelLoginSource(source *LoginSource) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// login a user
|
||||
func LoginUser(uname, passwd string) (*User, error) {
|
||||
// UserSignIn validates user name and password.
|
||||
func UserSignIn(uname, passwd string) (*User, error) {
|
||||
var u *User
|
||||
if strings.Contains(uname, "@") {
|
||||
u = &User{Email: uname}
|
||||
|
||||
Reference in new issue
Block a user