kopia lustrzana https://github.com/backface/turtlestitch
Merge branch 'new-cloud' of https://github.com/cycomachead/snap into gh-pages
commit
5c6a3c44ad
14
cloud.js
14
cloud.js
|
@ -247,7 +247,7 @@ Cloud.prototype.login = function (username, password, persist, onSuccess, onErro
|
|||
onError,
|
||||
'login failed',
|
||||
'false', // wants raw response
|
||||
password // password travels inside the body
|
||||
hex_sha512(password) // password travels inside the body
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -256,8 +256,8 @@ Cloud.prototype.signup = function (username, password, passwordRepeat, email, on
|
|||
'POST',
|
||||
'/users/' + username + '?' + this.encodeDict({
|
||||
email: email,
|
||||
password: password,
|
||||
password_repeat: passwordRepeat
|
||||
password: hex_sha512(password),
|
||||
password_repeat: hex_sha512(passwordRepeat)
|
||||
}),
|
||||
onSuccess,
|
||||
onError,
|
||||
|
@ -268,9 +268,9 @@ Cloud.prototype.changePassword = function (password, newPassword, passwordRepeat
|
|||
this.withCredentialsRequest(
|
||||
'POST',
|
||||
'/users/%username/newpassword?' + this.encodeDict({
|
||||
oldpassword: password,
|
||||
password_repeat: passwordRepeat,
|
||||
newpassword: newPassword
|
||||
oldpassword: hex_sha512(password),
|
||||
password_repeat: hex_sha512(passwordRepeat),
|
||||
newpassword: hex_sha512(newPassword)
|
||||
}),
|
||||
onSuccess,
|
||||
onError,
|
||||
|
@ -501,4 +501,4 @@ Cloud.prototype.updateNotes = function (projectName, notes, onSuccess, onError)
|
|||
);
|
||||
};
|
||||
|
||||
var SnapCloud = new Cloud('https://104.131.28.71');
|
||||
var SnapCloud = new Cloud('https://snap-cloud.cs10.org');
|
||||
|
|
|
@ -3925,6 +3925,10 @@ Translation Updates:
|
|||
* Turkish
|
||||
* Chinese
|
||||
* Spanish
|
||||
|
||||
|
||||
=== development ===
|
||||
* New cloud API
|
||||
* Russian
|
||||
|
||||
*** in development ***
|
||||
|
|
Ładowanie…
Reference in New Issue