apps-android-commons/app/src/main/java/fr/free/nrw/commons/auth
Kaartic Sivaraam 69cd9c94d1
Make sure to clear cookies on logout (#5727)
* Ensure to clear the cookies when logging out

It turns out that we failed to clear the cookies from the cookie JAR
when logging the user out. As a consequence, the cookie were retained
and it was possible to edit depictions as the previous user even without
logging in to the app (using the retained cookies).

Make sure we properly clear the cookies when we log the user out.

As an aside, the fact that the edit button shouldn't have been shown
is a different issue being tracked in #5726

* session: reuse removeAccount method for log out

The removeAccount method takes care of invoking the non-deprecated
API in applicable API levels. The logout method did not do such a
thing. Avoid redundancy, and reuse the removeAccount method for
logging out.
2024-06-18 22:31:34 +02:00
..
csrf Make sure to clear cookies on logout (#5727) 2024-06-18 22:31:34 +02:00
login Refactor : API calls moved out of the LoginActivity (#5599) 2024-03-06 08:35:50 -06:00
AccountUtil.java Optimize imports (#3272) 2019-12-06 17:51:36 +09:00
LoginActivity.java Precise error message password change (#5544) 2024-03-21 23:21:53 +05:30
SessionManager.java Make sure to clear cookies on logout (#5727) 2024-06-18 22:31:34 +02:00
SignupActivity.java fixes crash in sign up activity in api 21 and 22 (#5311) 2023-09-26 16:14:41 +09:00
WikiAccountAuthenticator.java Fixes: #3278: Add java docs to methods which have it missing (#3351) 2020-01-28 11:45:15 -07:00
WikiAccountAuthenticatorService.java Fixes: #3278: Add java docs to methods which have it missing (#3351) 2020-01-28 11:45:15 -07:00