You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Desktop, Mobile, Cli: Avoid unnecessary requests if Joplin Cloud credentials are empty (#10256)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user