projects
/
qomet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[qomet.git]
/
public
/
javascripts
/
login.js
diff --git
a/public/javascripts/login.js
b/public/javascripts/login.js
index
8752ba8
..
d5cd3ac
100644
(file)
--- a/
public/javascripts/login.js
+++ b/
public/javascripts/login.js
@@
-8,6
+8,11
@@
const ajaxUrl = {
"register": "/register",
};
"register": "/register",
};
+const ajaxMethod = {
+ "login": "PUT",
+ "register": "POST",
+};
+
const infos = {
"login": "Connection token sent. Check your emails!",
"register": "Registration complete! Please check your emails.",
const infos = {
"login": "Connection token sent. Check your emails!",
"register": "Registration complete! Please check your emails.",
@@
-58,7
+63,7
@@
new Vue({
showMsg($dialog, "process", "Processing... Please wait");
$.ajax(ajaxUrl[this.stage],
{
showMsg($dialog, "process", "Processing... Please wait");
$.ajax(ajaxUrl[this.stage],
{
- method:
"GET"
,
+ method:
ajaxMethod[this.stage]
,
data:
{
email: encodeURIComponent(this.user.email),
data:
{
email: encodeURIComponent(this.user.email),