Skip to content

Commit

Permalink
Fix passcode again upon restarting, making the app unusable
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 committed Dec 26, 2024
1 parent eba0abb commit fa2bf82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/repository/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,11 @@ class DatabaseRepository {
}) async {
try {
if (column == 'passCode') {
if (value == null) {
await _secureStorage.deleteValue('passCode');
return true;
}

await _secureStorage.saveValue('passCode', value.toString());
return true;
}
Expand Down

0 comments on commit fa2bf82

Please sign in to comment.