Tweaked the SessionManager's IsSessionTokenValid function to accept a connection string to standardize the interfaces on all the SessionManager functions.
This commit is contained in:
@@ -24,6 +24,8 @@ namespace SecureCore.Authentication
|
||||
|
||||
public static void InitializeSettings()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Pepper)) throw new InvalidOperationException("The PasswordManager's settings have already been initialized. Operation aborted.");
|
||||
|
||||
if (AppSettingsManager.TryGetSettingInt(SectionName, "MaxLength", out int maxPasswordLength))
|
||||
{
|
||||
//As noted in this article https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#maximum-password-lengths
|
||||
|
||||
Reference in New Issue
Block a user