grocy/js/viewjs/login.js
2021-06-23 15:41:18 +02:00

18 lines
326 B
JavaScript

function loginView(Grocy, scope = null)
{
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
}
$scope('#username').focus();
if (Grocy.GetUriParam('invalid') === 'true')
{
$scope('#login-error').text(__t('Invalid credentials, please try again'));
$scope('#login-error').removeClass('d-none');
}
}