mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-28 03:32:27 +00:00
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:
parent
fe0b0726b5
commit
d16132f67f
22 changed files with 48 additions and 44 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue