|
|
|
@ -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");
|
|
|
|
|