Update login

This commit is contained in:
James Cole 2021-05-09 07:49:04 +02:00
parent 22c09b7849
commit 33f6725d37
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -53,10 +53,10 @@
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
<div class="form-group has-feedback">
{% if config('firefly.login_provider') == 'eloquent' %}
{% if config('firefly.authentication_guard') == 'web' %}
<input type="email" autocomplete="email" name="email" value="{% if not IS_DEMO_SITE %}{{ email }}{% else %}{{ DEMO_USERNAME }}{% endif %}" class="form-control" placeholder="{{ trans('form.email') }}"/>
{% else %}
<input type="text" autocomplete="username" name="email" value="{{ email }}" class="form-control" placeholder="{{ trans('form.login_name') }}"/>
<input type="text" autocomplete="username" name="{{ usernameField }}" value="{{ email }}" class="form-control" placeholder="{{ trans('form.login_name') }}"/>
{% endif %}
</div>
<div class="form-group has-feedback">