forked from forgejo/forgejo
Code convention
This commit is contained in:
parent
11f9d738e8
commit
4f2f3c2857
11 changed files with 83 additions and 80 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue