mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
39 lines
936 B
JavaScript
39 lines
936 B
JavaScript
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2015 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
require([
|
|
"jquery",
|
|
"i18n",
|
|
"apps/login/home/common",
|
|
"common/forms/views/form"
|
|
], function ($, i18n, Common, LoginForm) {
|
|
Common.initialize();
|
|
|
|
i18n.init({
|
|
resGetPath: Common.languagePath,
|
|
useLocalStorage: true
|
|
}, function () {
|
|
new LoginForm({
|
|
el: $("form[name=loginForm]"),
|
|
rules: [
|
|
{
|
|
name: "login",
|
|
rules: "required",
|
|
message: i18n.t("validation_blank")
|
|
},
|
|
{
|
|
name: "password",
|
|
rules: "required",
|
|
message: i18n.t("validation_blank")
|
|
}
|
|
]
|
|
});
|
|
});
|
|
});
|