Skip to content

Commit

Permalink
Merge pull request #1514 from Automattic/issue/1513-handle-429-error
Browse files Browse the repository at this point in the history
Update error handling in login to handle 429 response (too many wrong credentials at login)
  • Loading branch information
danilo04 authored Sep 30, 2021
2 parents d887e3a + 13f70ef commit 11bbfcd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Fixed crash when note reference is null in editor while hiding toolbar in landscape mode [#1504](https://github.com/Automattic/simplenote-android/pull/1504)
* [Internal] Updated list of tags to filter out collaborators (emails) [#1509](https://github.com/Automattic/simplenote-android/pull/1509)
* Fixed case in delete account button in settings [#1512](https://github.com/Automattic/simplenote-android/pull/1512)
* Added error handling for when the user has made too many wrong credential requests at login [#1514](https://github.com/Automattic/simplenote-android/pull/1514)

2.22
-----
Expand Down
2 changes: 1 addition & 1 deletion Simplenote/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ dependencies {
// Fastlane screengrab for screenshots automation
androidTestImplementation 'tools.fastlane:screengrab:2.0.0'
// Automattic and WordPress dependencies
implementation 'com.automattic:simperium:v1.0.0'
implementation 'com.automattic:simperium:develop-86ea7abdda7aece428ca5144a0a099b727b2473e'
implementation 'com.github.Automattic:Automattic-Tracks-Android:2.1.0'
implementation 'org.wordpress:passcodelock:2.0.2'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public void run() {
case UNVERIFIED_ACCOUNT:
showUnverifiedAccountDialog();
break;
case TOO_MANY_REQUESTS:
showDialogError(getString(R.string.simperium_too_many_attempts));
break;
case INVALID_ACCOUNT:
default:
showDialogError(getString(
Expand Down
1 change: 1 addition & 0 deletions Simplenote/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,5 @@
<string name="simperium_not_now">Cancel</string>
<string name="simperium_change_password">Change Password</string>
<string name="simperium_okay">Okay</string>
<string name="simperium_too_many_attempts">Too many log in attempts. Try again later.</string>
</resources>

0 comments on commit 11bbfcd

Please sign in to comment.