No logging in as administator & moderator in anarchy mode
This commit is contained in:
parent
6f5302043d
commit
aa95418b70
24
login.html.l
24
login.html.l
@ -19,9 +19,15 @@
|
|||||||
worked = false
|
worked = false
|
||||||
end
|
end
|
||||||
|
|
||||||
if worked and BigGlobe.cfg.anarchy == "ANARCHY" then
|
if BigGlobe.cfg.anarchy == "ANARCHY" then
|
||||||
response:addHeader("Refresh", "3;url=" .. zzz)
|
if u and u.privs > DB.USER_PRIVS_APPROVED then
|
||||||
response:statusCode(303)
|
worked = false
|
||||||
|
end
|
||||||
|
|
||||||
|
if worked then
|
||||||
|
response:addHeader("Refresh", "3;url=" .. zzz)
|
||||||
|
response:statusCode(303)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -30,9 +36,13 @@
|
|||||||
|
|
||||||
{% function content() %}
|
{% function content() %}
|
||||||
{% if BigGlobe.cfg.anarchy == "ANARCHY" then %}
|
{% if BigGlobe.cfg.anarchy == "ANARCHY" then %}
|
||||||
<p>In anarchy mode, anyone can be anything. Please wait..</p>
|
{% if worked and zzz then %}
|
||||||
|
<p>In anarchy mode, anyone can be anything. Please wait..</p>
|
||||||
<p>If that doesn't work, <a href="{{ Escapes.htmlescape(zzz) }}">click here</a>.</p>
|
|
||||||
|
<p>If that doesn't work, <a href="{{ Escapes.htmlescape(zzz) }}">click here</a>.</p>
|
||||||
|
{% else %}
|
||||||
|
<p>User doesn't exist.</p>
|
||||||
|
{% end %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if worked then %}
|
{% if worked then %}
|
||||||
<p>Link has been sent to {{ em and Escapes.htmlescape(em) }}. This page may be closed.</p>
|
<p>Link has been sent to {{ em and Escapes.htmlescape(em) }}. This page may be closed.</p>
|
||||||
@ -42,4 +52,4 @@
|
|||||||
{% end %}
|
{% end %}
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{# base.inc
|
{# base.inc
|
||||||
|
Loading…
Reference in New Issue
Block a user