username -> email (#50, #51)

This commit is contained in:
Michael Quigley
2022-09-09 10:20:05 -04:00
parent 370fd78402
commit c95e84b53e
15 changed files with 55 additions and 55 deletions

View File

@ -19,9 +19,9 @@ func ZrokAuthenticate(token string) (*rest_model_zrok.Principal, error) {
defer func() { _ = tx.Rollback() }()
if a, err := str.FindAccountWithToken(token, tx); err == nil {
principal := rest_model_zrok.Principal{
ID: int64(a.Id),
Token: a.Token,
Username: a.Username,
ID: int64(a.Id),
Token: a.Token,
Email: a.Email,
}
return &principal, nil
} else {