Todo check different return methods and choose one @ig

This commit is contained in:
Kim 2023-04-13 16:24:00 +02:00
parent b8fc04a90c
commit 5682d2893f
2 changed files with 1 additions and 2 deletions

View File

@ -27,6 +27,7 @@ public class Controller : ControllerBase
{
if (!user.VerifyPassword(password))
{
//return Unauthorized("No Password set");
throw new Exceptions(401,"Wrong Password Exception", "Please try again.", Request.Path.Value!);
}
}
@ -431,8 +432,6 @@ public class Controller : ControllerBase
: Unauthorized();
}
}

Binary file not shown.