mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-10 23:08:14 +00:00
rename user to sign
This commit is contained in:
parent
b2c8033cb6
commit
b1dd356235
@ -156,7 +156,7 @@ class ModuleController extends AbstractController
|
|||||||
[
|
[
|
||||||
'enabled' => in_array($request->get('namespace'), $public),
|
'enabled' => in_array($request->get('namespace'), $public),
|
||||||
'namespace' => $request->get('namespace'),
|
'namespace' => $request->get('namespace'),
|
||||||
'user' => $request->get('user'),
|
'sign' => $request->get('sign'),
|
||||||
'error' => $request->get('error'),
|
'error' => $request->get('error'),
|
||||||
'message' => $message,
|
'message' => $message,
|
||||||
'ip' => $request->getClientIp()
|
'ip' => $request->getClientIp()
|
||||||
|
@ -382,7 +382,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() : 'anon'
|
$request->get('sign') === 'ip' ? $request->getClientIp() : 'anon'
|
||||||
),
|
),
|
||||||
$request->get('message')
|
$request->get('message')
|
||||||
)
|
)
|
||||||
|
@ -4,20 +4,20 @@
|
|||||||
<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 == 'anon' or user != 'ip' %}
|
{% if sign == 'anon' or sign != 'ip' %}
|
||||||
<input type="radio" name="user" value="anon" id="form-post-user-anon" checked="checked" />
|
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" checked="checked" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<input type="radio" name="user" value="anon" id="form-post-user-anon" />
|
<input type="radio" name="sign" value="anon" id="form-post-sign-anon" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<label for="form-post-user-anon">
|
<label for="form-post-sign-anon">
|
||||||
{{ 'anon' | trans }}
|
{{ 'anon' | trans }}
|
||||||
</label>
|
</label>
|
||||||
{% if user == 'ip' %}
|
{% if sign == 'ip' %}
|
||||||
<input type="radio" name="user" value="ip" id="form-post-user-ip" checked="checked" />
|
<input type="radio" name="sign" value="ip" id="form-post-sign-ip" checked="checked" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<input type="radio" name="user" value="ip" id="form-post-user-ip" />
|
<input type="radio" name="sign" value="ip" id="form-post-sign-ip" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<label for="form-post-user-ip">
|
<label for="form-post-sign-ip">
|
||||||
@{{ ip }}
|
@{{ ip }}
|
||||||
</label>
|
</label>
|
||||||
<button type="submit">{{ 'send' | trans }}</button>
|
<button type="submit">{{ 'send' | trans }}</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user