No / in token!

This commit is contained in:
Kim 2023-09-15 16:39:01 +02:00
parent 13a2f22e36
commit 128063165d
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public static class Email
var config = JsonSerializer.Deserialize<SmtpConfig>(File.OpenRead("./Resources/smtpConfig.json"))!;
//todo am I right?
const String resetLink = "https://monitor.innov.energy/api/resetPassword";
const String resetLink = "https://monitor.innov.energy/api/ResetPassword";
try
{

View File

@ -36,7 +36,7 @@ public class Session : Relation<String, Int64>
{
var token = new Byte[24];
Random.Shared.NextBytes(token);
return Convert.ToBase64String(token);
return Convert.ToBase64String(token).Replace("/","");
}
}