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

Save short login activation date to show info on expiration #146

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

agix
Copy link
Contributor

@agix agix commented Apr 12, 2022

here_capture_20220412_234311

fuu_capture_20220412_234543

@agix agix requested a review from dlajarretie April 12, 2022 21:45
@agix agix self-assigned this Apr 12, 2022
@@ -98,7 +99,7 @@ class UserConnectForm extends Component {
onChange={this.handleChange}
disabled={this.props.loading}
error={this.props.errors.username}
autoFocus
autoFocus={this.props.savedUsername === '' ? true : false}
Copy link
Contributor

Choose a reason for hiding this comment

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

Useless ternary here, {this.props.savedUsername === ''} is enough

@@ -109,7 +110,7 @@ class UserConnectForm extends Component {
onChange={this.handleChange}
disabled={this.props.loading}
error={this.props.errors.password}
autoComplete
autoFocus={this.props.savedUsername === '' ? false : true}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, this could be {this.props.savedUsername !== ''}

@agix agix requested a review from dlajarretie April 20, 2022 19:52
@agix agix merged commit 75aafd2 into develop Apr 20, 2022
@agix agix deleted the expire_shortpass branch April 20, 2022 19:54
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.

None yet

2 participants