mirror of
				https://github.com/Mueller-Patrick/Betterzon.git
				synced 2025-10-31 08:45:48 +00:00 
			
		
		
		
	Merge remote-tracking branch 'origin/develop' into BETTERZON-140
This commit is contained in:
		
						commit
						cf300cb1b7
					
				|  | @ -451,6 +451,19 @@ export class ApiService { | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Get all required information about the currently logged in user. If the user is not logged in or the | ||||
|      * session is not valid anymore, a 401 will come back from the backend. | ||||
|      * @return Observable<any> The observable response of the api | ||||
|      */ | ||||
|     getUserInfo(): Observable<any> { | ||||
|         try { | ||||
|             return this.http.post((this.apiUrl + '/users/checkSessionValid'), {}); | ||||
|         } catch (exception) { | ||||
|             process.stderr.write(`ERROR received from ${this.apiUrl}: ${exception}\n`); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     /*       ______                       _ __               __ | ||||
|             / ____/___ __   ______  _____(_) /____     _____/ /_  ____  ____  _____ | ||||
|            / /_  / __ `/ | / / __ \/ ___/ / __/ _ \   / ___/ __ \/ __ \/ __ \/ ___/ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user