Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
gdhfghfghd
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGeek committed Feb 1, 2024
1 parent f885f01 commit e0c26b0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,17 @@ <h1 class="mb-0">OU</h1>
getUserProfile();
$('form').submit(function (e) {
e.preventDefault();

{% if config['URL_API'] %}
var config = {};
config.URL_API = String(config['URL_API']);
{% endif %}

var formData = {
email: $('#email').val(),
password: $('#password').val()
};

$.ajax({
type: 'POST',
url: config.URL_API+"/login",
{% if config['URL_API'] %}
url: String(config['URL_API'])+"/login",
{% endif %}
contentType: 'application/json;charset=UTF-8',
data: JSON.stringify(formData),
xhrFields: {
Expand Down

0 comments on commit e0c26b0

Please sign in to comment.