Skip to content

Show SSO buttons on registration page (fixes #3285)#3808

Merged
dessalines merged 5 commits intomainfrom
registration-sso
Jan 28, 2026
Merged

Show SSO buttons on registration page (fixes #3285)#3808
dessalines merged 5 commits intomainfrom
registration-sso

Conversation

@Nutomic
Copy link
Copy Markdown
Member

@Nutomic Nutomic commented Jan 26, 2026

Comment thread src/shared/components/home/signup.tsx Outdated
{this.registerForm()}
</div>
</div>
{(this.state.siteRes.oauth_providers?.length || 0) > 0 && (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this equivalent to what's on the login.tsx page? Would be good to extract into a component.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, done.

Comment thread src/shared/components/home/oauth/oauth-login.tsx Outdated

type OAuthLoginProps = { title: NoOptionI18nKeys };

export default class OAuthLogin extends Component<OAuthLoginProps, object> {
Copy link
Copy Markdown
Member

@dessalines dessalines Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there's no state, then you don't need to use a class / inferno component, you can do a functional component IE export function OauthLogin({title}: OAuthLoginProps) {.... There are lots of these in the codebase.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also try to avoid using default, these become really annoying to trace down.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed, although there are many other classes doing this.

Comment thread src/shared/components/home/oauth/oauth-login.tsx Outdated
Comment thread src/shared/components/person/settings.tsx Outdated
@Nutomic
Copy link
Copy Markdown
Member Author

Nutomic commented Jan 28, 2026

Made these changes, and also changed it to use only a single string for signup/login.

Copy link
Copy Markdown
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge when you get conflicts.

@dessalines
Copy link
Copy Markdown
Member

Going to fix and merge this, because the removed translations is breaking other PRs.

@dessalines dessalines enabled auto-merge (squash) January 28, 2026 20:36
@dessalines dessalines merged commit 8c6c847 into main Jan 28, 2026
2 checks passed
@dessalines dessalines deleted the registration-sso branch January 28, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants