Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Model/Session/Session.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Model/Session/Session.js b/src/Model/Session/Session.js
index 5a02bac..1a2bcf4 100644
--- a/src/Model/Session/Session.js
+++ b/src/Model/Session/Session.js
@@ -20,8 +20,10 @@ export default class Session {
* @return {Session}
*/
setId(value) {
- this._id = value;
- this._authorized = false;
+ if(this._id !== value) {
+ this._authorized = false;
+ this._id = value;
+ }
return this;
}