mirror of
https://github.com/bitwarden/mobile
synced 2025-12-18 01:03:24 +00:00
Password generator policy enforcement (#741)
* Password generator policy enforcement * Formatting * Changed to simple cast (double unboxing for int64/long) * Added ui indication of active policy on password generator page and fixed issue with switch enable logic
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Bit.iOS.Core.Controllers
|
||||
OptionsTableViewController.TableView.SeparatorColor = ThemeHelpers.SeparatorColor;
|
||||
}
|
||||
|
||||
var options = await _passwordGenerationService.GetOptionsAsync();
|
||||
var (options, enforcedPolicyOptions) = await _passwordGenerationService.GetOptionsAsync();
|
||||
UppercaseCell.Switch.On = options.Uppercase.GetValueOrDefault();
|
||||
LowercaseCell.Switch.On = options.Lowercase.GetValueOrDefault(true);
|
||||
SpecialCell.Switch.On = options.Special.GetValueOrDefault();
|
||||
|
||||
Reference in New Issue
Block a user