mirror of
https://github.com/bitwarden/server
synced 2025-12-30 23:23:37 +00:00
[PM-24192] Move account recovery logic to command (#6184)
* Move account recovery logic to command (temporarily duplicated behind feature flag) * Move permission checks to authorization handler * Prevent user from recovering provider member account unless they are also provider member
This commit is contained in:
@@ -674,7 +674,7 @@ public class HandlebarsMailService : IMailService
|
||||
await _mailDeliveryService.SendEmailAsync(message);
|
||||
}
|
||||
|
||||
public async Task SendAdminResetPasswordEmailAsync(string email, string userName, string orgName)
|
||||
public async Task SendAdminResetPasswordEmailAsync(string email, string? userName, string orgName)
|
||||
{
|
||||
var message = CreateDefaultMessage("Your admin has initiated account recovery", email);
|
||||
var model = new AdminResetPasswordViewModel()
|
||||
|
||||
Reference in New Issue
Block a user