Sha256: 779c68ef6141a0de1d1cac05f69c6612279f869068332a79748ae6155126fe5e

Contents?: true

Size: 1.65 KB

Versions: 59

Compression:

Stored size: 1.65 KB

Contents

<%= render :partial => "auth/modals/resource_errors.js.erb", locals: {resource: resource} %>

<% if resource.errors.size == 0 %>
	
	var resource_active = "<%= resource.active_for_authentication? %>";
	
	var additional_login_param_status_pending = "<%= resource.additional_login_param_status == 1 %>";
	
	if(resource_active === "true"){
		$("#login_footer").html("Redirecting you to your Profile").show();
		window.location.href = "<%= profile_path(resource.id) %>";
		
	}
	else{
		console.log("status pending is true");
		//this needs to be written in the dummy app,
		//depending on what is the additional-login_param
		$("#login_title").html("Verify your Account");
		if(additional_login_param_status_pending === "true"){
			
			$("#login_content").html("<%= escape_javascript(render partial: Auth::Partials.additional_login_param_new_otp_partial(resource), locals: {resource: resource, intent: ''}) %>").show();
			//$("#sign_up_inputs").hide();
			$("#login_footer").html("<%= escape_javascript(render partial: 'auth/modals/login_navigation_options.html.erb', locals: {resource: resource}) %>").show();
			$("#show_sign_up").hide();
			$("#forgot_password").hide();
			$("#resend_confirmation_email").hide();

		}
		else
		{   
			
			$("#login_content").html("<%= escape_javascript(render partial: 'auth/modals/sign_up_success_inactive_content.html.erb', locals: {resource: resource}) %>").show();
			$("#login_footer").html("<%= escape_javascript(render partial: 'auth/modals/login_navigation_options.html.erb') %>").show();
			$("#show_sign_up").hide();
			$("#forgot_password").hide();
			$("#resend_confirmation_email").show();
		}
	}
	open_sign_in_modal_if_closed();
<% end %>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.9 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.8 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.7 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.6 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.5 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.4 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.3 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.2 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.1 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.5.0 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.9 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.8 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.7 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.6 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.5 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.4 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.3 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.2 app/views/auth/registrations/create.js.erb
wordjelly-auth-1.4.0 app/views/auth/registrations/create.js.erb