rename login css to auth, since it will also be used by sign up

This commit is contained in:
Mathieu Magnin 2017-06-21 17:36:27 +02:00 committed by gregoirenovel
parent f1ab350897
commit 6777b51331
3 changed files with 9 additions and 9 deletions

View file

@ -2,21 +2,21 @@
@import "placeholders";
@import "mixins";
$login-breakpoint: 820px;
$auth-breakpoint: 820px;
@media (max-width: $login-breakpoint) {
@media (max-width: $auth-breakpoint) {
.preview {
display: none;
}
.two-columns .column.login-form {
.two-columns .column.auth-form {
@include horizontal-padding(0);
width: 100%;
}
}
@media (max-width: $login-breakpoint) {
.two-columns.login {
@media (max-width: $auth-breakpoint) {
.two-columns.auth {
background: #FFFFFF;
}
}
@ -58,7 +58,7 @@ $login-breakpoint: 820px;
}
}
.login-form {
.auth-form {
font-size: 14px;
.reset-password {

View file

@ -1,4 +1,4 @@
.two-columns.login
.two-columns.auth
.columns-container
.column.preview
- unless @dossier
@ -22,7 +22,7 @@
%p.procedure-description
= h @dossier.procedure.description.html_safe
.column.login-form
.column.auth-form
= form_for @user, url: user_session_path, html: { class: "form" } do |f|
%h1 Connectez-vous

View file

@ -13,7 +13,7 @@ describe FranceConnect::ParticulierController, type: :controller do
let(:user_info) { Hashie::Mash.new(france_connect_particulier_id: france_connect_particulier_id, given_name: given_name, family_name: family_name, birthdate: birthdate, birthplace: birthplace, gender: gender, email: email, password: password) }
describe '.login' do
describe '.auth' do
it 'redirect to france connect serveur' do
get :login
expect(response.status).to eq(302)