Added an error message when no email address is used on login
This commit is contained in:
		
							parent
							
								
									1cad5e99c8
								
							
						
					
					
						commit
						3da881bde4
					
				@ -128,28 +128,6 @@ table, .table {
 | 
				
			|||||||
                margin: 0;
 | 
					                margin: 0;
 | 
				
			||||||
                width: 100%;
 | 
					                width: 100%;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					 | 
				
			||||||
            // tr:first-child {
 | 
					 | 
				
			||||||
            //     td, th {
 | 
					 | 
				
			||||||
            //         border-top: 0;
 | 
					 | 
				
			||||||
            //     }
 | 
					 | 
				
			||||||
            // }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            // tr:last-child {
 | 
					 | 
				
			||||||
            //     td, th {
 | 
					 | 
				
			||||||
            //         border-bottom: 0;
 | 
					 | 
				
			||||||
            //     }
 | 
					 | 
				
			||||||
            // }
 | 
					 | 
				
			||||||
            
 | 
					 | 
				
			||||||
            // td, th {
 | 
					 | 
				
			||||||
            //     &:first-child {
 | 
					 | 
				
			||||||
            //         border-left: 0
 | 
					 | 
				
			||||||
            //     }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            //     &:last-child {
 | 
					 | 
				
			||||||
            //         border-right: 0
 | 
					 | 
				
			||||||
            //     }
 | 
					 | 
				
			||||||
            // }
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        &.bold {
 | 
					        &.bold {
 | 
				
			||||||
@ -458,6 +436,7 @@ nav.sub-menu {
 | 
				
			|||||||
        @include _(border-radius, 0.15em);
 | 
					        @include _(border-radius, 0.15em);
 | 
				
			||||||
        @include default-box-shadow(top, 2);
 | 
					        @include default-box-shadow(top, 2);
 | 
				
			||||||
        @include _(text-shadow, 0 0.05em 0.05em #FFF);
 | 
					        @include _(text-shadow, 0 0.05em 0.05em #FFF);
 | 
				
			||||||
 | 
					        @include not-link-like;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        &:hover, &:active, &:focus {
 | 
					        &:hover, &:active, &:focus {
 | 
				
			||||||
            background-color: #D8D8D8;
 | 
					            background-color: #D8D8D8;
 | 
				
			||||||
@ -468,10 +447,6 @@ nav.sub-menu {
 | 
				
			|||||||
            color: #666;
 | 
					            color: #666;
 | 
				
			||||||
            padding: 0.333em 0.75em 0.25em;
 | 
					            padding: 0.333em 0.75em 0.25em;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					 | 
				
			||||||
        @include after {
 | 
					 | 
				
			||||||
            display: none;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @include breakpoint(medium) {
 | 
					    @include breakpoint(medium) {
 | 
				
			||||||
@ -711,10 +686,7 @@ nav.sub-menu {
 | 
				
			|||||||
        border: 0.1rem solid $light-gray;
 | 
					        border: 0.1rem solid $light-gray;
 | 
				
			||||||
        border-top: 0;
 | 
					        border-top: 0;
 | 
				
			||||||
        border-right: 0;
 | 
					        border-right: 0;
 | 
				
			||||||
 | 
					        @include not-link-like;
 | 
				
			||||||
        @include after {
 | 
					 | 
				
			||||||
            display: none;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        &:hover {
 | 
					        &:hover {
 | 
				
			||||||
            background-color: $light-gray;
 | 
					            background-color: $light-gray;
 | 
				
			||||||
@ -1566,6 +1538,7 @@ nav.sub-menu {
 | 
				
			|||||||
        margin: 0.5em 0;
 | 
					        margin: 0.5em 0;
 | 
				
			||||||
        @include default-box-shadow(top, 2);
 | 
					        @include default-box-shadow(top, 2);
 | 
				
			||||||
        @include _(transition, transform 150ms ease-in-out);
 | 
					        @include _(transition, transform 150ms ease-in-out);
 | 
				
			||||||
 | 
					        @include not-link-like;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        &:hover, &:focus, &:active {
 | 
					        &:hover, &:focus, &:active {
 | 
				
			||||||
            z-index: $zindex-base + 2;
 | 
					            z-index: $zindex-base + 2;
 | 
				
			||||||
@ -1583,10 +1556,6 @@ nav.sub-menu {
 | 
				
			|||||||
            cursor: pointer;
 | 
					            cursor: pointer;
 | 
				
			||||||
            @include _(box-shadow, inset 0em -2em 2em -1em $white);
 | 
					            @include _(box-shadow, inset 0em -2em 2em -1em $white);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					 | 
				
			||||||
        @include after {
 | 
					 | 
				
			||||||
            display: none;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1797,10 +1766,7 @@ html[data-ontop] {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    a {
 | 
					    a {
 | 
				
			||||||
        color: inherit;
 | 
					        color: inherit;
 | 
				
			||||||
 | 
					        @include not-link-like;
 | 
				
			||||||
        @include after {
 | 
					 | 
				
			||||||
            display: none;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    .name {
 | 
					    .name {
 | 
				
			||||||
 | 
				
			|||||||
@ -186,7 +186,7 @@ table#ecxbb_full_width {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
code {
 | 
					code {
 | 
				
			||||||
    color: firebrick;
 | 
					    color: firebrick;
 | 
				
			||||||
    white-space: pre;
 | 
					    white-space: nowrap;
 | 
				
			||||||
    margin: 0 0 2em;
 | 
					    margin: 0 0 2em;
 | 
				
			||||||
    display: block;
 | 
					    display: block;
 | 
				
			||||||
    max-width: $max-table-width;
 | 
					    max-width: $max-table-width;
 | 
				
			||||||
 | 
				
			|||||||
@ -145,7 +145,7 @@ class UserMailer < ActionMailer::Base
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @user = User.find(@request.data['user'].to_i) if @request.data['user'].present?
 | 
					    @user = User.find(@request.data['user'].to_i) if @request.data['user'].present?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    mail to: administrators, subject: clean_subject(subject)
 | 
					    mail to: administrators, subject: clean_subject(subject), reply_to: @user.present? ? @user.named_email : nil
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def contact(from, subject, message, email_list)
 | 
					  def contact(from, subject, message, email_list)
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,9 @@
 | 
				
			|||||||
- dest ||= nil
 | 
					- dest ||= nil
 | 
				
			||||||
 | 
					- if flash[:error].present?
 | 
				
			||||||
 | 
					  #action-message.error
 | 
				
			||||||
 | 
					    .message=_"articles.conference_registration.error.#{flash[:error]}"
 | 
				
			||||||
= form_tag do_confirm_path, class: 'flex-form' do
 | 
					= form_tag do_confirm_path, class: 'flex-form' do
 | 
				
			||||||
	= hidden_field_tag :dest, settings_path if dest.present?
 | 
					  = hidden_field_tag :dest, settings_path if dest.present?
 | 
				
			||||||
	= emailfield :email, nil, big: true
 | 
					  = emailfield :email, nil, big: true, required: true
 | 
				
			||||||
	= button :continue, value: :confirm_email
 | 
					  = button :continue, value: :confirm_email
 | 
				
			||||||
	= link_to (_'forms.actions.generic.facebook_sign_in','Facebook Sign In'), auth_at_provider_path(provider: :facebook, dest: dest), class: [:button, :facebook]
 | 
					  = link_to (_'forms.actions.generic.facebook_sign_in','Facebook Sign In'), auth_at_provider_path(provider: :facebook, dest: dest), class: [:button, :facebook]
 | 
				
			||||||
 | 
				
			|||||||
@ -64,10 +64,7 @@ BikeBike::Application.configure do
 | 
				
			|||||||
  # config.action_controller.asset_host = "http://assets.example.com"
 | 
					  # config.action_controller.asset_host = "http://assets.example.com"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Precompile additional assets.
 | 
					  # Precompile additional assets.
 | 
				
			||||||
  # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
 | 
					 | 
				
			||||||
  # config.assets.precompile += %w( search.js )
 | 
					 | 
				
			||||||
  config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif *.json *.ttf *.otf *.woff *.woff2 *.svg *.json)
 | 
					  config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif *.json *.ttf *.otf *.woff *.woff2 *.svg *.json)
 | 
				
			||||||
  #config.action_controller.asset_host = "https://preview-cdn.bikebike.org"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Ignore bad email addresses and do not raise email delivery errors.
 | 
					  # Ignore bad email addresses and do not raise email delivery errors.
 | 
				
			||||||
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
 | 
					  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user