1
0
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:
pedr 2024-04-03 11:43:22 -03:00 committed by GitHub
parent 3e0f6994a1
commit 1e6cc11868
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,10 @@ export default class JoplinServerApi {
const clientInfo = await this.getClientInfo();
if (!this.options_.username() || !this.options_.password()) {
return null;
}
try {
this.session_ = await this.exec_('POST', 'api/sessions', null, {
email: this.options_.username(),