mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
Compare commits
3 Commits
20c1290a0e
...
17685e76d8
Author | SHA1 | Date | |
---|---|---|---|
![]() |
17685e76d8 | ||
![]() |
bdd4111722 | ||
![]() |
e03e732f33 |
@ -48,8 +48,13 @@ public class AuthenticationController : Controller {
|
||||
} else {
|
||||
user = ctx.Users.FirstOrDefault(e => e.Username == data.UserName);
|
||||
}
|
||||
|
||||
if (user is null) {
|
||||
return Ok(new ParentLoginInfo { Status = MembershipUserStatus.InvalidUserName });
|
||||
}
|
||||
|
||||
PasswordVerificationResult result = new PasswordHasher<object>().VerifyHashedPassword(null, user.Password, data.Password);
|
||||
if (user is null || result == PasswordVerificationResult.Failed) {
|
||||
if (result == PasswordVerificationResult.Failed) {
|
||||
return Ok(new ParentLoginInfo { Status = MembershipUserStatus.InvalidPassword });
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Use the official .NET SDK image for building the application
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Copy the source code
|
||||
@ -13,7 +13,7 @@ RUN mv src/mods /app && ln -s /app/mods src/
|
||||
RUN mv src/assets /app && ln -s /app/assets src/
|
||||
|
||||
# Create clean run environment (without source and sdk)
|
||||
# FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||
# FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
|
||||
# WORKDIR /app
|
||||
# COPY --from=build /app .
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
namespace sodoff.Schema;
|
||||
|
||||
[XmlRoot(ElementName = "Mission", Namespace = "")]
|
||||
[Serializable] // FIXME: Remove serializable once we have a different way of deep copying than BinaryFormatter
|
||||
[Serializable]
|
||||
public class Mission {
|
||||
public Mission() { }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user