English => aMule Help => Topic started by: sirex on September 12, 2004, 03:02:43 PM
Title: web remote password size
Post by: sirex on September 12, 2004, 03:02:43 PM
maybe im being dense and misse dit, but is there any way to make the password for the web remote login longer than 9 chars ? - fromt he logs it seems only the first 9 letters of the password are sent due to a limit on the textbox size on the login page. Is this going to be incresed for future versions ? -- if not, maybe a popup box when you enter the password to tell you its too long ?
took me a while to work out why i couldnt log in :-)
Title: Re: web remote password size
Post by: phoenix on September 13, 2004, 01:00:52 PM
sirex,
Which version o aMule are you running? rc5? There is no such a limitation on password sizes, as far as i know. I have tested here with 11 chars, and it is working fine. Which logs are you refering to? Can you paste them here?
Cheers!
Title: Re: web remote password size
Post by: sirex on September 13, 2004, 03:42:27 PM
well im on RC5.... There is no limitation in the size of the password which can be set (AFAIK), which is great!
*but* in the HTML source of the login page, the textbox is limited to 12 chars. My passwords are normally 20+ chars alphanumeric.
What im saying is that although i dont mind a 12 char limit (i thought it was 9 originally but its 12 apparently) it would be good if amule told you that when you set the password, and not when you spend 2 hours wondering why your password didnt work. When your entry is replaced by ****** you normally dont count to see how many *'s there actually are. (i did though, thats how i figured it out in the end!)
Title: Re: web remote password size
Post by: Jacobo221 on September 13, 2004, 11:22:00 PM
Change the template (~/.aMule/amule.tmpl) file to allow more than 12 characters in the input. People normally use 6-8 characters passwords. You are an exception ;-) Greetings!
Title: Re: web remote password size
Post by: phoenix on September 14, 2004, 03:59:47 AM
sirex,
If I understand correctly, this is an HTML issue, right? Can you send a patch to do what you request? Would probably have to be in javascript, if I recall correctly. It's not like I am a HTML expert... ;)
Cheers!
Title: Re: web remote password size
Post by: Jacobo221 on September 14, 2004, 01:13:04 PM
phoenix:
It's just changing
for
in aMule.tmpl
maxlength limits the amount of chars in the input.
Greetings!
Title: Re: web remote password size
Post by: Jacobo221 on September 14, 2004, 01:13:57 PM
btw, phoenix, check that there's no overflow on the server side if it gets a password of huge amount of chars....
Title: Re: web remote password size
Post by: sirex on September 14, 2004, 05:54:01 PM
thanks :-)
Title: Re: web remote password size
Post by: phoenix on September 14, 2004, 06:18:38 PM
Jacobo221,
Sirex is right, there is no such a limitation in the code. I don't know why the template has a limit.
Cheers!
Title: Re: web remote password size
Post by: Jacobo221 on September 16, 2004, 04:18:59 PM
phoenix: so, remove it from CVS ;-) but the limit might be there to avoid an overflow. Check the webserver code to see if it's ok since you are the webserver man now (among other things) ;-)
Title: Re: web remote password size
Post by: phoenix on September 17, 2004, 02:01:30 PM
Jacobo221,
aMule.tmpl is fixed in CVS. As far as I can see, there is no password length problem in code.
Cheers!
Title: Re: web remote password size
Post by: sirex on September 18, 2004, 11:59:28 AM
yes the .tmpl file can increse the entry size. thanks. Hopefully theres no trouble with overflows maybe from people entering the page with a url of ?w=zzzzzzzzzzzzzzz-> etc or similar. Cheers