register demo user only when it's absent

This commit is contained in:
realaravinth
2021-08-12 08:26:49 +05:30
parent 9269539a8a
commit 78ebc46c64
2 changed files with 21 additions and 21 deletions

View File

@@ -1,12 +1,6 @@
<. if crate::SETTINGS.allow_demo && crate::SETTINGS.allow_registration { .>
<p class="auth__demo-user__banner">
Try mCaptcha without joining
<br />
<span class="auth__demo-user__cred">
user: <.= crate::demo::DEMO_USER .>
</span>
<span class="auth__demo-user__cred">
password: <.= crate::demo::DEMO_PASSWORD .>
</span>
<p class="auth__demo-user__banner">Try mCaptcha without joining<br />
<span class="auth__demo-user__cred">user: <.= crate::demo::DEMO_USER .></span>
<span class="auth__demo-user__cred">password: <.= crate::demo::DEMO_PASSWORD .></span>
</p>
<. } .>