Merge branch 'develop' into feature/add-move-to-archive-dialog
This commit is contained in:
commit
879cfd0256
@ -309,18 +309,26 @@ public class PortalController : ControllerBase
|
||||
}
|
||||
}
|
||||
|
||||
var reference = _commonMethods.CreateReference(Request.Scheme, t.GetTenantDomain(_coreSettings), info.Email, isFirst);
|
||||
|
||||
_log.LogDebug("PortalName = {0}; Elapsed ms. CreateReferenceByCookie...: {1}", model.PortalName, sw.ElapsedMilliseconds);
|
||||
|
||||
sw.Stop();
|
||||
|
||||
return Ok(new
|
||||
try
|
||||
{
|
||||
reference,
|
||||
tenant = _commonMethods.ToTenantWrapper(t),
|
||||
referenceWelcome = sendCongratulationsAddress
|
||||
});
|
||||
_log.LogDebug("try CreateReference");
|
||||
var reference = _commonMethods.CreateReference(Request.Scheme, t.GetTenantDomain(_coreSettings), info.Email, isFirst);
|
||||
_log.LogDebug("PortalName = {0}; Elapsed ms. CreateReferenceByCookie...: {1}", model.PortalName, sw.ElapsedMilliseconds);
|
||||
|
||||
sw.Stop();
|
||||
|
||||
return Ok(new
|
||||
{
|
||||
reference,
|
||||
tenant = _commonMethods.ToTenantWrapper(t),
|
||||
referenceWelcome = sendCongratulationsAddress
|
||||
});
|
||||
}catch (Exception e)
|
||||
{
|
||||
_log.LogError(e, "CreateReference error");
|
||||
|
||||
return BadRequest(error);
|
||||
}
|
||||
}
|
||||
|
||||
[HttpDelete("remove")]
|
||||
|
@ -59,7 +59,6 @@ const ChangePasswordForm = (props) => {
|
||||
|
||||
const hash = createPasswordHash(password, hashSettings);
|
||||
const { uid, confirmHeader } = linkData;
|
||||
|
||||
changePassword(uid, hash, confirmHeader)
|
||||
.then(() => logout())
|
||||
.then(() => {
|
||||
|
@ -54,13 +54,13 @@ const ActiveSessions = ({
|
||||
setCurrentSession(res.loginEvent);
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
const onClickRemoveAllSessions = async () => {
|
||||
try {
|
||||
setLoading(true);
|
||||
await removeAllSessions().then((res) => console.log(res));
|
||||
await removeAllSessions().then((res) => window.location.replace(res));
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
toastr.error(error);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
setLogoutAllVisible(false);
|
||||
|
Loading…
Reference in New Issue
Block a user