Fix: Sign-in user if exists

This commit is contained in:
Kamigen
2024-05-24 17:00:25 -04:00
parent 4fba9e2a0a
commit fc0c94306b
3 changed files with 18 additions and 8 deletions

View File

@@ -84,8 +84,12 @@ public class UserService(UserManager<ApplicationUser> userManager, IHttpContextA
}
}
// If we need to add special characters we can alternate between 2 pools.
public class RandomGenerator
{
// For the moment, numbers and special characters don't work because
// the random generator is designed to handle a single integer.
// We can modify this in the future.
private const string LetterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789"
+ "!@#$%^&*()_+"