Can't really help you without looking at some application code as I have no 
idea what techer/MULTI_USER_MODE is, but you can create a user directly in 
the database using appadmin and inserting a row in the auth_user table if 
needed.

A terça-feira, 28 de março de 2023 à(s) 17:30:40 UTC+1, Geo escreveu:

> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/389d2d64-43eb-480d-bfb1-52a2d655189en%40googlegroups.com.

Reply via email to