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

Password shouldn't be required for send_invite mode #38

Closed
dryabov opened this issue Sep 18, 2018 · 1 comment
Closed

Password shouldn't be required for send_invite mode #38

dryabov opened this issue Sep 18, 2018 · 1 comment

Comments

@dryabov
Copy link
Contributor

dryabov commented Sep 18, 2018

<input id="password" type="password" class="form-control input-sized" name="password" value="{{ old('password') }}" maxlength="255" required autofocus>

I've wrapped required autofocus into @if (empty(old('send_invite')) && !empty(old('role'))) required autofocus @endif, but most likely it's better to extract this condition into a variable.

Browser (Chrome) doesn't allow to submit form with empty required field.

@freescout-helpdesk
Copy link
Owner

4f1e74a

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

No branches or pull requests

2 participants