Remove the client nonce being empty check

This commit is contained in:
vishalnayak 2016-09-14 12:03:14 -04:00
parent 53c919b1d0
commit d7ce69c5eb

View file

@ -390,13 +390,6 @@ func (b *backend) pathLoginUpdate(
storedIdentity.PendingTime = identityDoc.PendingTime
storedIdentity.DisallowReauthentication = disallowReauthentication
// Performing the clientNonce empty check after determining the
// DisallowReauthentication option. This is to make clientNonce
// optional when DisallowReauthentication is set.
if clientNonce == "" && !storedIdentity.DisallowReauthentication {
return logical.ErrorResponse("missing nonce"), nil
}
// Don't cache the nonce if DisallowReauthentication is set
if storedIdentity.DisallowReauthentication {
storedIdentity.ClientNonce = ""