aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: web remote password size  (Read 3445 times)

sirex

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
web remote password size
« 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 :-)
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: web remote password size
« Reply #1 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!
Logged

sirex

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: web remote password size
« Reply #2 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!)
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: web remote password size
« Reply #3 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!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: web remote password size
« Reply #4 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!
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: web remote password size
« Reply #5 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!
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: web remote password size
« Reply #6 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....
Logged

sirex

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: web remote password size
« Reply #7 on: September 14, 2004, 05:54:01 PM »

thanks :-)
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: web remote password size
« Reply #8 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!
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: web remote password size
« Reply #9 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) ;-)
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: web remote password size
« Reply #10 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!
Logged

sirex

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: web remote password size
« Reply #11 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
Logged