feat: allow in generic provider to register
This commit is contained in:
parent
f72bbb9de3
commit
68c8be4988
|
|
@ -144,7 +144,7 @@ export class AuthService {
|
|||
return user;
|
||||
}
|
||||
|
||||
if (!(await this.canRegister())) {
|
||||
if (!(await this.canRegister()) && provider !== Provider.GENERIC) {
|
||||
throw new Error('Registration is disabled');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,10 +33,11 @@ export const OauthProvider = () => {
|
|||
alt="genericOauth"
|
||||
width={40}
|
||||
height={40}
|
||||
className="-mt-[7px]"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
{t('sign_in_with', 'Sign in with')}
|
||||
{t('sign_in_with', 'Sign in with')}
|
||||
{oauthDisplayName || 'OAuth'}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7,13 +7,6 @@ import { useVariables } from '@gitroom/react/helpers/variable.context';
|
|||
import { TopTitle } from '@gitroom/frontend/components/launches/helpers/top.title.component';
|
||||
import { useModals } from '@mantine/modals';
|
||||
import { LoadingComponent } from '@gitroom/frontend/components/layout/loading';
|
||||
import {
|
||||
NeynarAuthButton,
|
||||
NeynarContextProvider,
|
||||
Theme,
|
||||
useNeynarContext,
|
||||
} from '@neynar/react';
|
||||
import { INeynarAuthenticatedUser } from '@neynar/react/dist/types/common';
|
||||
import { ButtonCaster } from '@gitroom/frontend/components/auth/providers/farcaster.provider';
|
||||
export const WrapcasterProvider: FC<Web3ProviderInterface> = (props) => {
|
||||
const [_, state] = props.nonce.split('||');
|
||||
|
|
|
|||
Loading…
Reference in New Issue