mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-14 11:18:47 +02:00
All: Fixed potential infinite loop when Joplin Server session is invalid
This commit is contained in:
parent
401f1b1f83
commit
c5569ef06d
@ -65,7 +65,7 @@ export default class JoplinServerApi {
|
|||||||
if (this.session_) return this.session_;
|
if (this.session_) return this.session_;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.session_ = await this.exec('POST', 'api/sessions', null, {
|
this.session_ = await this.exec_('POST', 'api/sessions', null, {
|
||||||
email: this.options_.username(),
|
email: this.options_.username(),
|
||||||
password: this.options_.password(),
|
password: this.options_.password(),
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user