Skip to content

PasswordSignInPolicyExtensions class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Asks the IPasswordSignInPolicys whether a user can sign in with the password.

public static class PasswordSignInPolicyExtensions

Public Members

name description
const PasswordSignInDeniedCode The error code of a sign-in with the password that a policy refuses.
static GetPasswordSignInDenial(…) Gets why a user can't sign in with the password, from the first policy that refuses it, or null when the user can, e.g. after the password is checked.
static ValidatePasswordSignIn(…) Throws a validation error with the PasswordSignInDeniedCode code when a user can't sign in with the password, see GetPasswordSignInDenial.

See Also