fix #2192 - Adding a new site fails

This commit is contained in:
Shaun Walker
2022-05-12 20:42:05 -04:00
parent 2ff4133cd4
commit 4c254a8686
2 changed files with 125 additions and 124 deletions

View File

@ -327,7 +327,7 @@ namespace Oqtane.Controllers
var result = await _identitySignInManager.CheckPasswordSignInAsync(identityuser, user.Password, true);
if (result.Succeeded)
{
var LastIPAddress = user.LastIPAddress;
var LastIPAddress = user.LastIPAddress ?? "";
user = _users.GetUser(user.Username);
if (user.TwoFactorRequired)