Skip to content

Commit

Permalink
allow opening of files with empty/blank password. #249
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoul committed Aug 6, 2021
1 parent 0fff515 commit 12f2c8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions authpass/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Properly handle invalid file types when opening.
* Fix background color in dark theme when swiping over password #210
* BETA: experimental support for custom authpass cloud file cloud backend. #29
* Make all (remaining) strings translatable. #78
* Allow *opening* of kdbx files with empty passwords. #249

# 1.9.0 - 2021-08-02

Expand Down
10 changes: 3 additions & 7 deletions authpass/lib/ui/screens/select_file_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -986,13 +986,9 @@ class _CredentialsScreenState extends State<CredentialsScreen> {
autovalidateMode: _invalidPassword != null
? AutovalidateMode.always
: AutovalidateMode.onUserInteraction,
validator: (_keyFile == null || _invalidPassword != null
? SValidator.notEmpty(
msg: loc.masterPasswordEmptyValidator)
: SValidator<String>([])) +
SValidator.invalidValue(
invalidValue: () => _invalidPassword,
message: loc.masterPasswordIncorrectValidator),
validator: SValidator.invalidValue(
invalidValue: () => _invalidPassword,
message: loc.masterPasswordIncorrectValidator),
onEditingComplete: () {
FocusScope.of(context).unfocus();

Expand Down

0 comments on commit 12f2c8a

Please sign in to comment.