diff --git a/app/views/user_sessions/_form.html.erb b/app/views/user_sessions/_form.html.erb index a64b2601348..78b549a7b0d 100644 --- a/app/views/user_sessions/_form.html.erb +++ b/app/views/user_sessions/_form.html.erb @@ -8,6 +8,7 @@ <% if f.error_messages != "" %>
<%= f.error_messages %>
<% end %> +
@@ -19,12 +20,15 @@
-
+ +
+ - <%= f.text_field :username, { tabindex: 1, placeholder: "Username", class: 'form-control', id: 'username-login' } %> + <%= f.text_field :username, { tabindex: 1, placeholder: "Username", class: 'form-control', id: 'username-login', required: true } %> - <%= f.password_field :password, { tabindex: 2,placeholder: "Password",class: 'form-control', id: 'password-signup', onpaste: 'return false;' } %> -
+ <%= f.password_field :password, { tabindex: 2,placeholder: "Password",class: 'form-control', id: 'password-signup', onpaste: 'return false;' , required: true } %> + +
@@ -32,18 +36,20 @@
-
- -

<%= raw t('user_sessions.new.reset_by_clicking_here', :url1 => "/reset/") %>

+
+ +

<%= raw t('user_sessions.new.reset_by_clicking_here', :url1 => "/reset/") %>

+ <% end %> + <% if !current_user %> - - + <% end %> +