Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: Login Form - failure or no access page/message

Login Form - failure or no access page/message 1 year 1 week ago #45969

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
This is in regards to www.davewilliams.com/davewilliams/membership-section.

When someone types in a wrong username/password or one that doesn't have the right access... it just takes you to another page that has the login box...but doesn't say any sort of message telling them they typed in the wrong username/password. Is it possible to do that?
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

Login Form - failure or no access page/message 1 year 1 week ago #45972

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3950
  • Thank you received: 134
  • Karma: 9
Hi Heart0,

Are you using the core Joomla login module or an extension?

What Joomla version are you using?
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Login Form - failure or no access page/message 1 year 1 week ago #45974

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3950
  • Thank you received: 134
  • Karma: 9
Hello Heart0,

I was just looking at your source code for your login module:
<fieldset>
												<div class="login-fields"><label id="username-lbl" for="username" class="">User Name</label>					<input type="text" name="username" id="username" value="test" class="validate-username" [b]size="25"/>[/b]</div>
																<div class="login-fields"><label id="password-lbl" for="password" class="">Password</label>					<input type="password" name="password" id="password" value="test" class="validate-password" [b]size="25"/>[/b]</div>
										<button type="submit" class="button">Log in</button>
			<input type="hidden" name="return" value="L2RhdmV3aWxsaWFtcy9tZW1iZXJzaGlwLXNlY3Rpb24vbWVtYmVyc2hpcHNlY3Rpb25tZW51" />
			<input type="hidden" name="5d4c829984850cf793e8f94715884de5" value="1" />		</fieldset>

Notice the div class where it gives validation? Where it says size="25"/>, there needs to be a space between " and /. So size="25" />. Joomla is very picky and requires a space when self closing an element.

Let me know if this helps. You might see PHP instead on this page of code, so make sure there are spaces on all self closing elements for any validation/error type of code on that page.

Let me know if this works.
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Login Form - failure or no access page/message 1 year 1 week ago #46015

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
Hey there :)

The login module I'm using is the "K2 User" Module. Is there a better one for me to use?

And when I look at the source code for the module, I'm not seeing the same thing that you are. Weird. It actually says that the size is 18.
<fieldset class="input">
	    <p id="form-login-username">
	      <label for="modlgn_username">Username</label>
	      <input id="modlgn_username" type="text" name="username" class="inputbox" size="18">
	    </p>
	    <p id="form-login-password">
	      <label for="modlgn_passwd">Password</label>
	      <input id="modlgn_passwd" type="password" name="password" class="inputbox" size="18">
	    </p>
	    	    <p id="form-login-remember">
	      <label for="modlgn_remember">Remember me</label>
	      <input id="modlgn_remember" type="checkbox" name="remember" class="inputbox" value="yes">
	    </p>
	    	    
	    <input type="submit" name="Submit" class="button" value="Login">
	  </fieldset>
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

Login Form - failure or no access page/message 1 year 1 week ago #46036

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3950
  • Thank you received: 134
  • Karma: 9
Heart0,

I think you are looking at a different set of code.

But you need to go in the code and fix it or else it will not work. Each input box code needs to be self closed with a space before the slash or it will not validate.

Or you can install a different extension. ;-)
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Login Form - failure or no access page/message 1 year 1 week ago #46080

  • Heart0
  • Heart0's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 340
  • Karma: 0
See my other post :)
Blessings,
~Anita
Please become a member of OSTraining to reply to this post.

Login Form - failure or no access page/message 1 year 1 week ago #46094

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16797
  • Thank you received: 386
  • Karma: 56
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.