Home Forums Academy Can login but registration doesn't work

Can login but registration doesn't work

  • CecilioLanz

    People on my platform can login with their previously created accounts but since yesterday new users can’t register. They fill the form and when pressing Register they get “Invalid username or password”.

    CecilioLanz

    Also, it’s not the plugins. I disabled them and the problem persists.

    CecilioLanz

    Oh, I forgot, Facebook login works too.

    ihor Staff

    Please sign in or register to view replies from the support staff.

    CecilioLanz

    I can show you the code from template-register.php:

    <?php
    /*
    Template Name: Registration
    */
    ?>
    <?php get_header(); ?>
    <?php if(get_option('users_can_register')) { ?>
    <div class="sevencol column">
    	<h1>Regístrate con tu correo</h1>
    	<form class="ajax-form formatted-form" action="<?php echo AJAX_URL; ?>" method="POST">
    		<div class="message"></div>
    		<div class="sevencol column">
    			<div class="field-wrapper">
    				<input type="text" name="user_login" placeholder="<?php _e('Username','academy'); ?>" />
    			</div>								
    		</div>
                    
    		<div class="sevencol column">
    			<div class="field-wrapper">
    				<input type="text" name="user_email" placeholder="<?php _e('Email','academy'); ?>" />
    			</div>
    		</div>
    
    <div class="sevencol column">
    		         <div class="field-wrapper">
    		        <input type="text" name="company" placeholder="Nombre de la Compañía" />
    		         </div>
    	       </div>
                    <div class="sevencol column">
    		         <div class="field-wrapper">
    		        <input type="text" name="industry" placeholder="Industria a la que perteneces" />
    		         </div>
    	       </div>
    
                    <div class="sevencol column">
    		         <div class="field-wrapper">
    		        <input type="text" name="position" placeholder="Tu posición en la Compañía" />
    		         </div>
    	       </div>
    
    		<div class="clear"></div>
    		<div class="sevencol column">
    			<div class="field-wrapper">
    				<input type="password" name="user_password" placeholder="<?php _e('Password','academy'); ?>" />
    			</div>
    		</div>
    		<div class="sevencol column">
    			<div class="field-wrapper">
    				<input type="password" name="user_password_repeat" placeholder="<?php _e('Repeat Password','academy'); ?>" />
    			</div>
    		</div>
    		<div class="clear"></div>			
    		<?php if(ThemexCore::checkOption('user_captcha')) { ?>
    		<div class="form-captcha">
    			<img />assets/images/captcha/captcha.php" alt="" />
    			<input type="text" name="captcha" id="captcha" size="6" value="" />
    		</div>
    		<div class="clear"></div>
    		<?php } ?>
    		<a href="#"><span class="button-icon register"></span><?php _e('Register','academy'); ?></a>
    		<div class="form-loader"></div>
    		<input type="hidden" name="user_action" value="register_user" />
    		<input type="hidden" name="user_redirect" value="<?php echo esc_attr(themex_value($_POST, 'user_redirect')); ?>" />
    		<input type="hidden" name="nonce" class="nonce" value="<?php echo wp_create_nonce(THEMEX_PREFIX.'nonce'); ?>" />
    		<input type="hidden" name="action" class="action" value="<?php echo THEMEX_PREFIX; ?>update_user" />
    
    <div class="clear"></div>
    <br/>
    <div class="sevencol column">
    	<?php if(get_option('users_can_register')) { ?>
    	<h1>Regístrate con Facebook</h1>
    	<?php } ?>
    	<form class="ajax-form formatted-form" action="<?php echo AJAX_URL; ?>" method="POST">			
    		<?php if(ThemexFacebook::isActive()) { ?>
    		<span class="element-button facebook-button left" title="<?php _e('Sign in with Facebook','academy'); ?>" data-redirect="<?php echo ThemexFacebook::getURL(); ?>">
    			<span class="button-icon facebook"></span><span class="entra con fb">  Entrar con facebook</span>
    		</span>
    		<?php } ?>
    		<div class="form-loader"></div>
    		<input type="hidden" name="user_action" value="login_user" />
    		<input type="hidden" name="user_redirect" value="<?php echo esc_attr(themex_value($_POST, 'user_redirect')); ?>" />
    		<input type="hidden" name="nonce" class="nonce" value="<?php echo wp_create_nonce(THEMEX_PREFIX.'nonce'); ?>" />
    		<input type="hidden" name="action" class="action" value="<?php echo THEMEX_PREFIX; ?>update_user" />
    	</form>	
    </div>
    
    	</form>	
    </div>
    
    <?php } ?>
    <div class="fourcol column last">
    	<?php if(get_option('users_can_register')) { ?>
    	<h1>¿Ya tienes cuenta? Inicia sesión</h1>
    	<?php } ?>
    	<form class="ajax-form formatted-form" action="<?php echo AJAX_URL; ?>" method="POST">
    		<div class="message"></div>
    		<div class="field-wrapper">
    			<input type="text" name="user_login" placeholder="<?php _e('Username','academy'); ?>" />
    		</div>
    		<div class="field-wrapper">
    			<input type="password" name="user_password" placeholder="<?php _e('Password','academy'); ?>" />
    		</div>			
    		<a href="#"><span class="button-icon login"></span><?php _e('Sign In','academy'); ?></a>
    		
    		<div class="form-loader"></div>
    		<input type="hidden" name="user_action" value="login_user" />
    		<input type="hidden" name="user_redirect" value="<?php echo esc_attr(themex_value($_POST, 'user_redirect')); ?>" />
    		<input type="hidden" name="nonce" class="nonce" value="<?php echo wp_create_nonce(THEMEX_PREFIX.'nonce'); ?>" />
    		<input type="hidden" name="action" class="action" value="<?php echo THEMEX_PREFIX; ?>update_user" />
    	
    
    <div class="clear"></div>
    <br/>
    
    <div class="tencol column last">
    	<?php if(get_option('users_can_register')) { ?>
    	<h1>Inicia sesión con Facebook</h1>
    	<?php } ?>
    	<form class="ajax-form formatted-form" action="<?php echo AJAX_URL; ?>" method="POST">			
    		<?php if(ThemexFacebook::isActive()) { ?>
    		<span class="element-button facebook-button left" title="<?php _e('Sign in with Facebook','academy'); ?>" data-redirect="<?php echo ThemexFacebook::getURL(); ?>">
    			<span class="button-icon facebook"></span><span class="entra con fb">  Entrar con facebook</span>
    		</span>
    		<?php } ?>
    		<div class="form-loader"></div>
    		<input type="hidden" name="user_action" value="login_user" />
    		<input type="hidden" name="user_redirect" value="<?php echo esc_attr(themex_value($_POST, 'user_redirect')); ?>" />
    		<input type="hidden" name="nonce" class="nonce" value="<?php echo wp_create_nonce(THEMEX_PREFIX.'nonce'); ?>" />
    		<input type="hidden" name="action" class="action" value="<?php echo THEMEX_PREFIX; ?>update_user" />
    	</form>			
    </div>
    
    </form>			
    </div>
    
    <?php ThemexInterface::renderTemplateContent('register'); ?>
    <?php get_footer(); ?>
    ihor Staff

    Please sign in or register to view replies from the support staff.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.