This commit is contained in:
@@ -149,7 +149,7 @@ func LoginCheck(username string, password string) (string, error) {
|
||||
log.Printf("LoginCheck retrieved user '%v' from database\n", u)
|
||||
}
|
||||
|
||||
//log.Printf("u: %v\n", u)
|
||||
log.Printf("u: %v\n", u)
|
||||
|
||||
if !u.LdapUser {
|
||||
// Locally defined user, perform password verification
|
||||
@@ -180,6 +180,7 @@ func LoginCheck(username string, password string) (string, error) {
|
||||
|
||||
// If we reached this point then the login was successful
|
||||
// Generate a new token and return it to the user
|
||||
log.Printf("LoginCheck generating token for user id '%d'\n", uint(u.UserId))
|
||||
token, err := token.GenerateToken(uint(u.UserId))
|
||||
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user