Stat hotfix (#1748)
* Fixed a bug where a divide by 0 could occur * Email change now requires a password
This commit is contained in:
parent
7e55134e6b
commit
3e1d0f39f0
7 changed files with 34 additions and 5 deletions
|
|
@ -204,8 +204,8 @@ export class AccountService implements OnDestroy {
|
|||
return this.httpClient.post(this.baseUrl + 'account/update', model);
|
||||
}
|
||||
|
||||
updateEmail(email: string) {
|
||||
return this.httpClient.post<UpdateEmailResponse>(this.baseUrl + 'account/update/email', {email});
|
||||
updateEmail(email: string, password: string) {
|
||||
return this.httpClient.post<UpdateEmailResponse>(this.baseUrl + 'account/update/email', {email, password});
|
||||
}
|
||||
|
||||
updateAgeRestriction(ageRating: AgeRating, includeUnknowns: boolean) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue