mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -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>
|
||||
<div>
|
||||
<p>
|
||||
|
@ -34,7 +35,7 @@
|
|||
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
var base = '@Html.GetBaseUrl()';
|
||||
$('#loginBtn').click(function (e) {
|
||||
e.preventDefault();
|
||||
var $form = $("#loginForm");
|
||||
|
@ -42,6 +43,7 @@
|
|||
var dtOffset = new Date().getTimezoneOffset();
|
||||
formData += ('&DateTimeOffset=' + dtOffset);
|
||||
|
||||
var url = createBaseUrl(base, '/search');
|
||||
$.ajax({
|
||||
type: $form.prop("method"),
|
||||
url: $form.prop("action"),
|
||||
|
@ -51,7 +53,7 @@
|
|||
console.log(response);
|
||||
if (response.result === true) {
|
||||
|
||||
window.location.replace("/search");
|
||||
window.location.replace(url);
|
||||
|
||||
} else {
|
||||
generateNotify(response.message, "warning");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue