Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ctftime login and registration frontend #200

Merged
merged 4 commits into from
Apr 15, 2020

Conversation

ginkoid
Copy link
Member

@ginkoid ginkoid commented Apr 15, 2020

No description provided.

@chen-robert chen-robert changed the title feat(client): add ctftime login and registration Add ctftime login and registration frontend Apr 15, 2020
Copy link
Member

@ethanwu10 ethanwu10 left a comment

Choose a reason for hiding this comment

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

Passing props through to the container in CtftimeButton should be implemented ASAP since it's a trivial fix, other comments we can break out into separate issues.

client/src/components/ctftime-button.js Outdated Show resolved Hide resolved
client/src/components/ctftime-button.js Outdated Show resolved Hide resolved
client/src/routes/ctftime-callback.js Outdated Show resolved Hide resolved
const { classes } = props
render ({ classes }, { teamToken, errors, disabledButton, ctftimeToken }) {
if (ctftimeToken) {
return <CtftimeAdditional ctftimeToken={ctftimeToken} />
Copy link
Member

Choose a reason for hiding this comment

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

Ideally this would redirect to /registration while passing the token through using history state, however preact-router does not support attaching state (in JS) to a history entry. We can still implement this by implementing a state store using context and invalidate on any route change, which is enough to implement this.

Copy link
Member

Choose a reason for hiding this comment

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

Documented in #201, out of scope for this PR though

Copy link
Member

@chen-robert chen-robert left a comment

Choose a reason for hiding this comment

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

lgtm

@chen-robert chen-robert merged commit 3baf502 into master Apr 15, 2020
@chen-robert chen-robert deleted the feature/client-ctftime branch April 15, 2020 08:25
nick-ls pushed a commit to nick-ls/rctf that referenced this pull request Aug 6, 2024
Add ctftime login and registration frontend
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.

3 participants