custom login view

This commit is contained in:
yuri
2019-06-27 11:34:35 +03:00
parent e76c7564dc
commit 4dc08dd37c
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -110,6 +110,12 @@ class Settings extends \Espo\Core\Services\Base
}
}
unset($data->loginView);
$loginView = $this->getMetadata()->get(['clientDefs', 'App', 'loginView']);
if ($loginView) {
$data->loginView = $loginView;
}
$this->filterData($data);
return $data;
+1 -1
View File
@@ -31,7 +31,7 @@ define('controllers/base', 'controller', function (Dep) {
return Dep.extend({
login: function () {
var viewName = this.getMetadata().get(['clientDefs', 'App', 'loginView']) || 'views/login';
var viewName = this.getConfig().get('loginView') || 'views/login';
this.entire(viewName, {}, function (login) {
login.render();
login.on('login', function (data) {