docbrown/app/views/users/_account_set_password.html.erb
Ben Halpern da6a6739e5
[deploy] Invite users to join and create password (#9294)
* Initial invitation work

* Add more invitation code

* Add proper registration page

* Fix up tests

* Fix failings

* Fix spec

* Add self-serve auth config

* Add registered condition

* Change profile image call and registered_at test

* Change comment

* Fix copy test

* Stub emojipedia

* Linting

* Add registered at to factory

* Ensure registered for user tag

* Update app/views/internal/invitations/index.html.erb

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Update app/controllers/internal/invitations_controller.rb

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Slight changes

* Update recover password flow

* Update app/views/internal/invitations/index.html.erb

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Update app/controllers/internal/invitations_controller.rb

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Update db/schema.rb

Co-authored-by: Michael Kohl <citizen428@dev.to>
2020-07-15 11:37:19 -04:00

15 lines
829 B
Text

<div class="crayons-card mb-6 grid grid-flow-row gap-6 p-6">
<header>
<h2 class="mb-2">Set New Password</h2>
<p>As an alternative to signing in via linked social accounts, you may create a password.</p>
</header>
<%= form_for @user do |f| %>
<div class="crayons-field mb-5">
<%= f.label :password, class: "crayons-field__label" %>
<%= f.password_field :password, class: "crayons-textfield", autocomplete: "off" %>
<%= f.label :password_confirmation, "Confirm new password", class: "crayons-field__label" %><br />
<%= f.password_field :password_confirmation, autocomplete: "off", class: "crayons-textfield" %>
</div>
<button class="crayons-btn crayon-btn--secondary" id="new__api__secret__btn" type="submit">Set New Password</button>
<% end %>
</div>