Ensure a valid identity is provided in public key
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
87d60c5fd5
commit
8251fb2f96
4
keys.go
4
keys.go
@ -257,6 +257,10 @@ func (k *Key) ReadInfos(u *User) error {
|
||||
}
|
||||
}
|
||||
|
||||
if std_identity == nil {
|
||||
return fmt.Errorf("No identity found with %s email address.", u.Email)
|
||||
}
|
||||
|
||||
if std_identity.UserId != nil {
|
||||
k.Infos["identity"] = std_identity.UserId.Name
|
||||
k.Infos["email"] = std_identity.UserId.Email
|
||||
|
Reference in New Issue
Block a user