NET 7.0 support (#581)

* NET 7.0 support

* Bump Pomelo MySql to support EF7

* Its net7.0 time

* Trying to resolve dependencies by hand

* Fix .NET 7 warnings

* Bump InfluxDB version

* Fix bad null handling
This commit is contained in:
Josh 2022-12-13 18:17:28 -06:00 committed by GitHub
commit d16132f67f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 48 additions and 44 deletions

View file

@ -19,9 +19,9 @@ public class PasswordResetPage : BaseLayout
public async Task<IActionResult> OnPost(string password, string confirmPassword)
{
User? user;
if (Request.Query.ContainsKey("token"))
if (this.Request.Query.ContainsKey("token"))
{
user = await this.Database.UserFromPasswordResetToken(Request.Query["token"][0]);
user = await this.Database.UserFromPasswordResetToken(this.Request.Query["token"][0]);
if (user == null)
{
this.Error = "This password reset link either is invalid or has expired. Please try again.";

View file

@ -29,7 +29,7 @@ public class RegisterForm : BaseLayout
{
if (this.Request.Query.ContainsKey("token"))
{
string token = this.Request.Query["token"];
string? token = this.Request.Query["token"];
if (!this.Database.IsRegistrationTokenValid(token))
return this.StatusCode(403, this.Translate(ErrorStrings.TokenInvalid));
@ -126,7 +126,7 @@ public class RegisterForm : BaseLayout
{
if (this.Request.Query.ContainsKey("token"))
{
string token = this.Request.Query["token"];
string? token = this.Request.Query["token"];
if (!this.Database.IsRegistrationTokenValid(token))
return this.StatusCode(403, this.Translate(ErrorStrings.TokenInvalid));