Todo check different return methods and choose one @ig
This commit is contained in:
parent
b8fc04a90c
commit
5682d2893f
|
@ -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.
Loading…
Reference in New Issue