Fixed authService.me sometimes using invalid url (possible relation to #289)

This commit is contained in:
George Kalampokis 2020-09-15 13:16:18 +03:00
parent 31ab0747b2
commit 29c8ad8589
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ export class AuthService extends BaseService {
}
public me(): Observable<Principal> {
const url = this.actionUrl + '/me';
this.actionUrl = this.configurationService.server + 'auth/';
const url = this.actionUrl + 'me';
const principal = this.current();
if (!principal) {
this.clear();