Project

General

Profile

Bug #262

Problem adding users with Prewikka 0.9.12.1

Added by over 16 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

0%

Resolution:
fixed

Description

When trying to add new users with Prewikka 0.9.12.1 the login is changed to this (where <username> is the user name entered):

['None', '<username>']

I don't know Python so I couldn't properly fix it, but I traced the problem to this:

views/usermanagement.py and templates/UserSettings.py use a hidden "login" parameter to keep track of the user currently being edited. When a new user is added, the same template is used and the HTML code sent to the browser contains those two tags:

<input type="hidden" name="login" value="None"/>
<input type="text" name="login"/>

On the POST request the browser sends back this string (with two login= parameters):

view=user_settings_add&login=None&login=<username>&language=en&permissions=<some_perms>&password_new=<password>&password_new_confirmation=<password>

And some Python magic make the user appear as described above.

Associated revisions

Revision 3f0e1fc8 (diff)
Added by Yoann VANDOORSELAERE over 16 years ago

Only add the hidden login field in case the username is already known.
This fixes #262.

History

#1 Updated by Yoann VANDOORSELAERE over 16 years ago

  • Status changed from New to Assigned

#2 Updated by Yoann VANDOORSELAERE over 16 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

(In r9939) Only add the hidden login field in case the username is already known.
This fixes #262.

#3 Updated by Yoann VANDOORSELAERE almost 15 years ago

  • Project changed from PRELUDE SIEM to Prewikka
  • Category deleted (5)
  • Target version deleted (0.9.13)

Also available in: Atom PDF