Feature/deactivate internet identity for account registration (#2293)
* Deactivate Internet Identity * Update changelog
This commit is contained in:
parent
05ec4cce05
commit
48ba8f936b
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Improved the validation in the activities import
|
- Improved the validation in the activities import
|
||||||
|
- Deactivated _Internet Identity_ as a social login provider for the account registration
|
||||||
- Improved the language localization for German (`de`)
|
- Improved the language localization for German (`de`)
|
||||||
- Refreshed the cryptocurrencies list
|
- Refreshed the cryptocurrencies list
|
||||||
- Changed the version in the `docker-compose` files from `3.7` to `3.9`
|
- Changed the version in the `docker-compose` files from `3.7` to `3.9`
|
||||||
|
@ -55,7 +55,7 @@ export class AuthService {
|
|||||||
const isUserSignupEnabled =
|
const isUserSignupEnabled =
|
||||||
await this.propertyService.isUserSignupEnabled();
|
await this.propertyService.isUserSignupEnabled();
|
||||||
|
|
||||||
if (!isUserSignupEnabled) {
|
if (!isUserSignupEnabled || true) {
|
||||||
throw new Error('Sign up forbidden');
|
throw new Error('Sign up forbidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import { Router } from '@angular/router';
|
|||||||
import { DataService } from '@ghostfolio/client/services/data.service';
|
import { DataService } from '@ghostfolio/client/services/data.service';
|
||||||
import { InternetIdentityService } from '@ghostfolio/client/services/internet-identity.service';
|
import { InternetIdentityService } from '@ghostfolio/client/services/internet-identity.service';
|
||||||
import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service';
|
import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service';
|
||||||
import { UserService } from '@ghostfolio/client/services/user/user.service';
|
|
||||||
import { InfoItem, LineChartItem } from '@ghostfolio/common/interfaces';
|
import { InfoItem, LineChartItem } from '@ghostfolio/common/interfaces';
|
||||||
import { hasPermission, permissions } from '@ghostfolio/common/permissions';
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions';
|
||||||
import { Role } from '@prisma/client';
|
import { Role } from '@prisma/client';
|
||||||
@ -36,8 +35,7 @@ export class RegisterPageComponent implements OnDestroy, OnInit {
|
|||||||
private dialog: MatDialog,
|
private dialog: MatDialog,
|
||||||
private internetIdentityService: InternetIdentityService,
|
private internetIdentityService: InternetIdentityService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private tokenStorageService: TokenStorageService,
|
private tokenStorageService: TokenStorageService
|
||||||
private userService: UserService
|
|
||||||
) {
|
) {
|
||||||
this.info = this.dataService.fetchInfo();
|
this.info = this.dataService.fetchInfo();
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
<ng-container *ngIf="hasPermissionForSocialLogin">
|
<ng-container *ngIf="hasPermissionForSocialLogin">
|
||||||
<div class="my-3 text-muted" i18n>or</div>
|
<div class="my-3 text-muted" i18n>or</div>
|
||||||
<button
|
<button
|
||||||
|
*ngIf="false"
|
||||||
class="d-block mb-2 px-4 rounded-pill"
|
class="d-block mb-2 px-4 rounded-pill"
|
||||||
mat-stroked-button
|
mat-stroked-button
|
||||||
(click)="onLoginWithInternetIdentity()"
|
(click)="onLoginWithInternetIdentity()"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user