Fixed user confirmation :/ #70

This commit is contained in:
Sven Heidemann 2022-10-25 08:07:15 +02:00
parent 5cbd6ec00b
commit 811e9991d0
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class AuthController:
await self._auth_service.add_auth_user_async(dto) await self._auth_service.add_auth_user_async(dto)
return '', 200 return '', 200
@Route.post(f'{BasePath}/register/<id>') @Route.post(f'{BasePath}/register-by-id/<id>')
async def register_id(self, id: str): async def register_id(self, id: str):
result = await self._auth_service.confirm_email_async(id) result = await self._auth_service.confirm_email_async(id)
return jsonify(result) return jsonify(result)

View File

@ -80,7 +80,7 @@ export class AuthService {
} }
confirmEMail(id: string): Observable<boolean> { confirmEMail(id: string): Observable<boolean> {
return this.http.post<boolean>(`${this.appsettings.getApiURL()}/api/auth/register/${id}`, { return this.http.post<boolean>(`${this.appsettings.getApiURL()}/api/auth/register-by-id/${id}`, {
headers: new HttpHeaders({ headers: new HttpHeaders({
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}) })