Skip to content

Commit

Permalink
Ignore error if login custom markup does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
esurface committed Jul 17, 2024
1 parent 5413e70 commit a72c09c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/src/app/core/auth/_services/authentication.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ export class AuthenticationService {
}

async getCustomLoginMarkup() {
return <string>await this.http.get('/custom-login-markup', {responseType: 'text'}).toPromise()
try {
return <string>await this.http.get('/custom-login-markup', {responseType: 'text'}).toPromise()
} catch (error) {
return ''
}
}
}

0 comments on commit a72c09c

Please sign in to comment.