Letractively / osclass

Automatically exported from code.google.com/p/osclass
0 stars 0 forks source link

Can add user 'admin' from Admin Panel interface #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to add 'admin' from backoffice.
2. select from db :-)
mysql> select s_username from osc2_t_user WHERE s_username = 'admin';
+------------+
| s_username |
+------------+
| admin      | 
+------------+
1 row in set (0.00 sec)

What is the expected output? What do you see instead?
Make a list with usernames that people can not register. Like stopwords list.

Original issue reported on code.google.com by max.podu...@gmail.com on 12 Apr 2010 at 2:47

GoogleCodeExporter commented 8 years ago
The user is responsible of create an administrator with any name, including 
"admin".
I fixed the code catching a DatabaseException and showing an error properly.

Original comment by santiago...@gmail.com on 13 Apr 2010 at 7:34