|
|
| Author |
Message |
-Stevie-
Well Known User
Joined: 21 May 2010
Posts: 196
|
Posted: August 19th 2010, 2:20 am Post subject: System recognising log-in details, whether caps on or off ? |
|
|
When members are trying to log-in and if they forget to take their caps lock off, it doesn't recognise their details. Is there any way of coding it, so that the system recognises it, either way please? _________________ www.phpbbhacks.com |
|
| Back to top |
|
 |
femu
Well Known User
Joined: 07 Jul 2007
Posts: 206
|
Posted: August 19th 2010, 10:31 pm Post subject: Re: System recognising log-in details, whether caps on or of |
|
|
| -Stevie- wrote:
|
|
When members are trying to log-in and if they forget to take their caps lock off, it doesn't recognise their details. Is there any way of coding it, so that the system recognises it, either way please?
|
First of all, I think it's only relevant for the password. The username can be written with capital letters or not .... So try following (got it from here):
Open styles/your_style/template/overall_header.html, Search:
BEFORE add:
| Code:
|
<script>
function capLock(e){
kc = e.keyCode?e.keyCode:e.which;
sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
document.getElementById('divMayus').style.visibility = 'visible';
else
document.getElementById('divMayus').style.visibility = 'hidden';
}
</script>
|
Then open styles/your_style/template/login_body.html search for:
| Code:
|
|
<input type="password" tabindex="2" id="{PASSWORD_CREDENTIAL}" name="{PASSWORD_CREDENTIAL}" size="25" class="inputbox autowidth" />
|
And REPLACE with:
| Code:
|
<input type="password" tabindex="2" id="{PASSWORD_CREDENTIAL}" name="{PASSWORD_CREDENTIAL}" size="25" class="inputbox autowidth" onkeypress="capLock(event)" />
<div id="divMayus" style="visibility:hidden">Caps Lock is on.</div>
|
Hope this helps ..... _________________ Regards,
femu
NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)] |
|
| Back to top |
|
 |
-Stevie-
Well Known User
Joined: 21 May 2010
Posts: 196
|
Posted: September 17th 2010, 1:19 pm Post subject: |
|
|
Hi Femu, many thanks for the help on this, it's appreciated. One thing, in the example on the other site from your post, you get a visible sign / warning that the caps lock is on, but what I'm wanting, is that if the pw was, for example, bertie - whether the person typed in BERTIE, Bertie, or bertie the login system would still accept it, with no visible warning / message. _________________ www.phpbbhacks.com |
|
| Back to top |
|
 |
femu
Well Known User
Joined: 07 Jul 2007
Posts: 206
|
Posted: September 17th 2010, 7:56 pm Post subject: |
|
|
Hi Stevie,
something like that isn't suggested. It's a kind of a security feature to have mixed upper-/lowercase characters.
So it's fine to say "Attention! You have caps lock on", but to allow having the possibility to wirting the password in every possible way is a real risk of being hacked. _________________ Regards,
femu
NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)] |
|
| Back to top |
|
 |
-Stevie-
Well Known User
Joined: 21 May 2010
Posts: 196
|
Posted: September 20th 2010, 6:49 am Post subject: |
|
|
Thanks Femu - will work on that _________________ www.phpbbhacks.com |
|
| Back to top |
|
 |
|