made password nullable in login function

This commit is contained in:
Kim 2023-07-06 11:06:55 +02:00
parent a0dc85b57b
commit c738804b1c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ using Token = String;
public class Controller : ControllerBase
{
[HttpPost(nameof(Login))]
public ActionResult<Session> Login(String username, String password)
public ActionResult<Session> Login(String username, String? password)
{
var user = Db.GetUserByName(username);