From 128063165df1aade621ed01020f212340fdca5e4 Mon Sep 17 00:00:00 2001 From: Kim Date: Fri, 15 Sep 2023 16:39:01 +0200 Subject: [PATCH] No / in token! --- csharp/App/Backend/Email/Email.cs | 2 +- csharp/App/Backend/Relations/Session.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/App/Backend/Email/Email.cs b/csharp/App/Backend/Email/Email.cs index 9e5262e36..af48e9720 100644 --- a/csharp/App/Backend/Email/Email.cs +++ b/csharp/App/Backend/Email/Email.cs @@ -30,7 +30,7 @@ public static class Email var config = JsonSerializer.Deserialize(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 { diff --git a/csharp/App/Backend/Relations/Session.cs b/csharp/App/Backend/Relations/Session.cs index 03af863ee..34cbff4f0 100644 --- a/csharp/App/Backend/Relations/Session.cs +++ b/csharp/App/Backend/Relations/Session.cs @@ -36,7 +36,7 @@ public class Session : Relation { var token = new Byte[24]; Random.Shared.NextBytes(token); - return Convert.ToBase64String(token); + return Convert.ToBase64String(token).Replace("/",""); } } \ No newline at end of file