9 lignes
283 o
Go
9 lignes
283 o
Go
|
package api
|
||
|
|
||
|
// CreateUserAuthentication creates user authentication.
|
||
|
func CreateUserAuthentication(form *formStruct.LoginForm) (models.User, int, error) {
|
||
|
username := form.Username
|
||
|
pass := form.Password
|
||
|
user, status, err := user.Exists(username, pass)
|
||
|
return user, status, err
|
||
|
}
|