templates/security/login.html.twig line 1
{% extends 'layout.html.twig' %}
{% block title %}Log in!{% endblock %}
{% block stylesheets %}
{{ parent() }}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}
body {
background: #f4f4f4!important;
}
.form-control:focus {
border: solid 1px #7796a8;
outline: none;
box-shadow: none;
}
{% endblock %}
{% block body %}
{% if error %}
{{ error.messageKey|trans(error.messageData, 'security') }}
{% endif %}
value="{{ csrf_token('authenticate') }}"
>
{% set url = 'app_forgot_password_request' %}
{% set url_register = 'distributor_reg' %}
{% if user_type == 'clinics' %}
{% set url = 'clinic_forgot_password_request' %}
{% set url_register = 'clinic_reg' %}
{% elseif user_type == 'distributors' %}
{% set url = 'distributors_forgot_password_request' %}
{% set url_register = 'distributor_reg' %}
{% elseif user_type == 'manufacturers' %}
{% set url = 'manufacturers_forgot_password_request' %}
{% set url_register = 'distributor_reg' %}
{% elseif user_type == 'retail' %}
{% set url = 'retail_forgot_password_request' %}
{% set url_register = 'retail_reg' %}
{% endif %}
href="{{ path(url) }}"
type="submit"
class="fs-6"
>
Forgot Password
|
Create Account
{% endblock %}
{% block javascripts %}
{{ parent() }}
$(document).ready(function () {
$(document).on('click', '#eye', function (e) {
let pwdField = $('#inputPassword');
if(pwdField.attr('type') == 'password')
{
pwdField.attr('type', 'text');
}
else
{
pwdField.attr('type', 'password');
};
});
});
{% endblock %}