made password nullable in login function
This commit is contained in:
parent
a0dc85b57b
commit
c738804b1c
|
@ -14,7 +14,7 @@ using Token = String;
|
||||||
public class Controller : ControllerBase
|
public class Controller : ControllerBase
|
||||||
{
|
{
|
||||||
[HttpPost(nameof(Login))]
|
[HttpPost(nameof(Login))]
|
||||||
public ActionResult<Session> Login(String username, String password)
|
public ActionResult<Session> Login(String username, String? password)
|
||||||
{
|
{
|
||||||
var user = Db.GetUserByName(username);
|
var user = Db.GetUserByName(username);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue