ServerCredentialsExtensions
Ecng.ComponentModel
Extensions for validating login values used by ServerCredentials and elsewhere.
Métodos
IsLoginValid
public static bool IsLoginValid(ServerCredentials credentials, bool asEmail)
result = ServerCredentialsExtensions.IsLoginValid(credentials, asEmail)
Convenience helper to validate the current Email as login.
- credentials
- Credentials instance.
- asEmail
- Validation mode: username or email.
Devuelve: True if valid; otherwise, false.
IsValidLogin
public static bool IsValidLogin(string login, bool asEmail)
result = ServerCredentialsExtensions.IsValidLogin(login, asEmail)
Validates that the given login string satisfies the specified .
- login
- Login value.
- asEmail
- Validation mode: username or email.
Devuelve: True if valid; otherwise, false.
UserNameRegex
private static Regex UserNameRegex()
result = ServerCredentialsExtensions.UserNameRegex()