ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Login Form, return parameter happens on log OUT instead of log IN?

January 30, 2014 3:55pm

Subscribe [1]
  • #1 / Jan 30, 2014 3:55pm

    ToolStudios,LLC

    47 posts

    This seems really wacky: 

    1. On login success, I get a “You are now logged out” message and it redirects to the homepage.
    2. On logout success, I get a “You are now logged in” message, and it redirects to the return=”” value

    What the heck?


    Here is my login form:

    {if member_group == "1" OR member_group =="7" OR member_group =="8"}
     
      <a href="/dealer-resources">Resources/Media</a> <a href="http://{path=%27logout%27}" class="button"><span class="icon icon-cog"></span> Logout</a> 
      
     {/if}
     
     {if logged_out}
     
      <a href="#" class="button"><span class="icon icon-cog"></span> Dealer Login</a>
      
      <div class="dealer-login">
      
       {exp:member:login_form return="/dealer-resources"}
    
        <fieldset>
        
          <input type="hidden" name="username" value="DealersAccess" />
          <input type="hidden" checked="checked" name="auto_login" value="1" />
        
         
          <label>Password<span class="required">*</span>
    
           <input type="password" name="password" id="password" value="" />
          </label>
          <input type="submit" value="Submit" name="dlsubmit" id="dlsubmit" class="submit">
         
       
        </fieldset>
        
       {/exp:member:login_form}
       
       <a class="close-login"></a>
       
      </div>
      
     {/if}

    I’m using the Custom System Messages extension, and this is my message template:

    {meta_refresh} 
             
             <section id="main-content">
    
                 
                 <div class="container">
    
     
         {!-- To deliver a custom message for a specific action --}
        
            {if csm:action == 12 AND csm:error == false}
                
                You have a success message!
            
            {if:elseif csm:action == 12 AND csm:error == true}
                
                Fail :(
            
            {if:else}
          
          <header>
          
           <h1>{<span>{heading}</span>}</h1>
          
          </header><!-- [END] header -->
          
          
          {content}
          
          {link}     
           
           
            {/if}  
                 </div><!-- [END] container -->
                 
                 
             </section><!-- [END] main-content -->

    Any ideas what could be going on here?  Thanks in advance for any help!!!

    EE v2.5.3 - Build Date: 20120911
    CSM Extension: 2.4.2

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases