Greetings,
I'm trying the techer/MULTI_USER_MODE but I encounter some issues.
With a default setup I set MULTI_USER_MODE = True in /admin/models/0.py

If I try to load the page
http://localhost/admin/default/user/login
or 
http://localhost/admin/default/user/register

I get this

Traceback (most recent call last):
File "D:\web2py\gluon\restricted.py", line 219, in restricted
exec(ccode, environment)
File "D:\web2py\applications\admin\views\default/user.html", line 80, in <
module>
TypeError: 'NoneType' object is not subscriptable

or this

Traceback (most recent call last):
File "D:\web2py\gluon\restricted.py", line 219, in restricted
exec(ccode, environment)
File "D:\web2py\applications\admin\views\default/user.html", line 59, in <
module>
{{=form}}
^
IndexError: list index out of range

auth_user table is empty
I really do not see how I could register the first user and then go ahead.

If I set MULTI_USER_MODE = False and login with the default password I land 
on http://localhost/admin/default/site as usual.
If, before logging out, I switch back MULTI_USER_MODE = True and relaod the 
page I can still see the right panel and on top I can see the 
login/register buttons
[image: Immagine 2023-03-28 182912.png]
 But they do not work as 
http://localhost/admin/default/user/register?_next=/admin/default/site 
throws again the NoneType error I pasted above.

Can you please help me?
Thanks and best regards

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/202eeade-5f08-4d4b-97ad-6e994bab6485n%40googlegroups.com.

Reply via email to