mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-23 18:53:36 +02:00
Desktop, Mobile, Cli: Avoid unnecessary requests if Joplin Cloud credentials are empty (#10256)
This commit is contained in:
parent
3e0f6994a1
commit
1e6cc11868
@ -80,6 +80,10 @@ export default class JoplinServerApi {
|
|||||||
|
|
||||||
const clientInfo = await this.getClientInfo();
|
const clientInfo = await this.getClientInfo();
|
||||||
|
|
||||||
|
if (!this.options_.username() || !this.options_.password()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
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(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user