mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-14 16:57:56 +00:00
rename guest user to anon
This commit is contained in:
parent
10dae97b78
commit
0aecdd302d
@ -346,7 +346,7 @@ class RoomController extends AbstractController
|
|||||||
sprintf(
|
sprintf(
|
||||||
'%s@%s',
|
'%s@%s',
|
||||||
time(), // @TODO save timestamp as part of key to keep timing actual for the chat feature
|
time(), // @TODO save timestamp as part of key to keep timing actual for the chat feature
|
||||||
$request->get('user') === 'ip' ? $request->getClientIp() : 'guest'
|
$request->get('user') === 'ip' ? $request->getClientIp() : 'anon'
|
||||||
),
|
),
|
||||||
$request->get('message')
|
$request->get('message')
|
||||||
)
|
)
|
||||||
@ -410,7 +410,7 @@ class RoomController extends AbstractController
|
|||||||
|
|
||||||
private function _identicon(mixed $value): ?string
|
private function _identicon(mixed $value): ?string
|
||||||
{
|
{
|
||||||
if ($value === 'guest')
|
if ($value === 'anon')
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
<output name="error" for="form-post-message">{{ error }}</output>
|
<output name="error" for="form-post-message">{{ error }}</output>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<textarea name="message" id="form-post-message" placeholder="{{ 'enter your message...' | trans }}">{{ message }}</textarea>
|
<textarea name="message" id="form-post-message" placeholder="{{ 'enter your message...' | trans }}">{{ message }}</textarea>
|
||||||
{% if user == 'guest' or user != 'ip' %}
|
{% if user == 'anon' or user != 'ip' %}
|
||||||
<input type="radio" name="user" value="guest" id="form-post-user-guest" checked="checked" />
|
<input type="radio" name="user" value="anon" id="form-post-user-anon" checked="checked" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<input type="radio" name="user" value="guest" id="form-post-user-guest" />
|
<input type="radio" name="user" value="anon" id="form-post-user-anon" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<label for="form-post-user-guest">
|
<label for="form-post-user-anon">
|
||||||
{{ 'guest' | trans }}
|
{{ 'anon' | trans }}
|
||||||
</label>
|
</label>
|
||||||
{% if user == 'ip' %}
|
{% if user == 'ip' %}
|
||||||
<input type="radio" name="user" value="ip" id="form-post-user-ip" checked="checked" />
|
<input type="radio" name="user" value="ip" id="form-post-user-ip" checked="checked" />
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<img src="{{ post.icon }}" alt="icon" />
|
<img src="{{ post.icon }}" alt="icon" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<strong>
|
<strong>
|
||||||
@{{ 'guest' | trans }}
|
@{{ 'anon' | trans }}
|
||||||
</strong>
|
</strong>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
•
|
•
|
||||||
|
Loading…
Reference in New Issue
Block a user