mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 04:49:33 -07:00
#72 Login page done
This commit is contained in:
parent
51f8e2a95c
commit
47dc543b09
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
<div class="home">
|
@using PlexRequests.UI.Helpers
|
||||||
|
<div class="home">
|
||||||
<h1>Login</h1>
|
<h1>Login</h1>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
|
@ -34,7 +35,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
var base = '@Html.GetBaseUrl()';
|
||||||
$('#loginBtn').click(function (e) {
|
$('#loginBtn').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $form = $("#loginForm");
|
var $form = $("#loginForm");
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
var dtOffset = new Date().getTimezoneOffset();
|
var dtOffset = new Date().getTimezoneOffset();
|
||||||
formData += ('&DateTimeOffset=' + dtOffset);
|
formData += ('&DateTimeOffset=' + dtOffset);
|
||||||
|
|
||||||
|
var url = createBaseUrl(base, '/search');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: $form.prop("method"),
|
type: $form.prop("method"),
|
||||||
url: $form.prop("action"),
|
url: $form.prop("action"),
|
||||||
|
@ -51,7 +53,7 @@
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if (response.result === true) {
|
if (response.result === true) {
|
||||||
|
|
||||||
window.location.replace("/search");
|
window.location.replace(url);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
generateNotify(response.message, "warning");
|
generateNotify(response.message, "warning");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue