mirror of
https://github.com/bitwarden/server.git
synced 2025-07-06 02:22:49 -05:00
[Reset Password] Admin reset actions (#1272)
* [Reset Password] Admin reset actions * Updated thrown except for permission collision * Updated GET/PUT password reset to use orgUser.Id for db operations
This commit is contained in:
@ -30,7 +30,7 @@ namespace Bit.Core.Models.Api
|
||||
SsoBound = !string.IsNullOrWhiteSpace(organization.SsoExternalId);
|
||||
Identifier = organization.Identifier;
|
||||
Permissions = CoreHelpers.LoadClassFromJsonData<Permissions>(organization.Permissions);
|
||||
ResetPasswordKey = organization.ResetPasswordKey;
|
||||
ResetPasswordEnrolled = organization.ResetPasswordKey != null;
|
||||
UserId = organization.UserId?.ToString();
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ namespace Bit.Core.Models.Api
|
||||
public bool SsoBound { get; set; }
|
||||
public string Identifier { get; set; }
|
||||
public Permissions Permissions { get; set; }
|
||||
public string ResetPasswordKey { get; set; }
|
||||
public bool ResetPasswordEnrolled { get; set; }
|
||||
public string UserId { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user