Skip to content

Commit

Permalink
Merge pull request #2187 from myxmaster/improve-set-pin-or-password
Browse files Browse the repository at this point in the history
Do not require login after setting new PIN or password
  • Loading branch information
kaloudis authored May 17, 2024
2 parents 127792e + 91947fe commit 2682804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions views/Settings/SetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class SetPassphrase extends React.Component<
}

await updateSettings({ passphrase }).then(() => {
setLoginStatus(false);
setLoginStatus(true);
getSettings();
navigation.navigate('Settings', {
refresh: true
Expand Down Expand Up @@ -255,10 +255,7 @@ export default class SetPassphrase extends React.Component<
this.deletePassword();
}
}}
titleStyle={{
color: themeColor('delete')
}}
secondary
warning
/>
</View>
)}
Expand Down
2 changes: 1 addition & 1 deletion views/Settings/SetPin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class SetPin extends React.Component<SetPinProps, SetPinState> {
}

await updateSettings({ pin }).then(() => {
setLoginStatus(false);
setLoginStatus(true);
getSettings();
navigation.navigate('Settings', {
refresh: true
Expand Down

0 comments on commit 2682804

Please sign in to comment.