mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 20:52:21 +08:00
Worked on reset password views, refactored out password strength to a reusable directive
This commit is contained in:
@ -30,6 +30,16 @@ type User struct {
|
||||
Updated time.Time
|
||||
}
|
||||
|
||||
func (u *User) NameOrFallback() string {
|
||||
if u.Name != "" {
|
||||
return u.Name
|
||||
} else if u.Login != "" {
|
||||
return u.Login
|
||||
} else {
|
||||
return u.Email
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------
|
||||
// COMMANDS
|
||||
|
||||
|
Reference in New Issue
Block a user