No / in token!
This commit is contained in:
parent
13a2f22e36
commit
128063165d
|
@ -30,7 +30,7 @@ public static class Email
|
||||||
var config = JsonSerializer.Deserialize<SmtpConfig>(File.OpenRead("./Resources/smtpConfig.json"))!;
|
var config = JsonSerializer.Deserialize<SmtpConfig>(File.OpenRead("./Resources/smtpConfig.json"))!;
|
||||||
|
|
||||||
//todo am I right?
|
//todo am I right?
|
||||||
const String resetLink = "https://monitor.innov.energy/api/resetPassword";
|
const String resetLink = "https://monitor.innov.energy/api/ResetPassword";
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class Session : Relation<String, Int64>
|
||||||
{
|
{
|
||||||
var token = new Byte[24];
|
var token = new Byte[24];
|
||||||
Random.Shared.NextBytes(token);
|
Random.Shared.NextBytes(token);
|
||||||
return Convert.ToBase64String(token);
|
return Convert.ToBase64String(token).Replace("/","");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue