• LoginControllerSettings

LoginControllerSettings

Namespace: LoginPlugin

Assembly: LoginPlugin

Settings that determine how the Login.Plugin module is configured and used.

Properties

CaptchaShowFailCount Maximum number of attempts to login before the user is prevented from logging in for several minutes.
CaptchaWordLength Length of the Captcha word. Default: 7 Minimum: 6 Maximum: 12
LoginSuccessUrl The absolute or relative Uri where the user will be redirected to if the login was successful.
ShowRememberMe Determines whether the Remember Me option is shown or not.
RememberMeCookieName Remember me cookie name. Must be between 6 and 20 characters long. Default: RememberMe
EncryptionKey Encryption key used to encrypt cookie values. Must be between 20 and 60 characters long.
LoginDays Number of days the user can remain logged in, this is accomplished using cookies. Default: 30 Minimum: 1 Maximum: 360
ChangePasswordUrl Url that the user can be redirected to, in order to change their password. This must be either a relative or absolute Uri.
AuthenticationScheme The name of the authentication scheme
GoogleClientId Unique client id for google logins. By default this will be returned from an environment variable for the user who's account this website is running in, but can be set directly in appsettings.json
GoogleSecret Google secret for client. By default this will be returned from an environment variable for the user who's account this website is running in, but can be set directly in appsettings.json
FacebookClientId Unique client id for facebook logins. By default this will be returned from an environment variable for the user who's account this website is running in, but can be set directly in appsettings.json
FacebookSecret Google secret for client. By default this will be returned from an environment variable for the user who's account this website is running in, but can be set directly in appsettings.json

Methods

IsGoogleLoginEnabled() Determines whether google login is allowed or not, based on current settings
IsFacebookLoginEnabled() Determines whether facebook login is allowed or not, based on current settings

In This Document