mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Migration of all files in auth to ES6 Modules
addserver forgotpassword forgotpasswordpin login selectserver
This commit is contained in:
parent
1f8ce6e6f4
commit
e033a748cc
6 changed files with 69 additions and 25 deletions
|
@ -1,5 +1,6 @@
|
|||
define(['globalize'], function (globalize) {
|
||||
'use strict';
|
||||
import globalize from 'globalize';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
function processForgotPasswordResult(result) {
|
||||
if (result.Success) {
|
||||
|
@ -22,7 +23,7 @@ define(['globalize'], function (globalize) {
|
|||
});
|
||||
}
|
||||
|
||||
return function (view, params) {
|
||||
export default function (view, params) {
|
||||
function onSubmit(e) {
|
||||
ApiClient.ajax({
|
||||
type: 'POST',
|
||||
|
@ -38,4 +39,5 @@ define(['globalize'], function (globalize) {
|
|||
|
||||
view.querySelector('form').addEventListener('submit', onSubmit);
|
||||
};
|
||||
});
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue