1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-07 16:02:54 +03:00

Rename function

This commit is contained in:
Mariano Cano
2022-02-01 14:17:37 -08:00
parent 3fe25da566
commit 2c2a8b5e79
3 changed files with 4 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ func doLoginIfNeeded(ctx *cli.Context, subject string) error {
// NOTE: For OIDC tokens the subject should always be the email. The
// provisioner is responsible for loading and setting the principals with
// the application of an Identity function.
if email, ok := tokenHasEmail(token); ok {
if email, ok := tokenEmail(token); ok {
subject = email
}