fix update profile error

fix update profile frontend unauthorize
This commit is contained in:
jack
2018-05-31 09:56:15 +08:00
parent e3632fce8d
commit d1023faeb4
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -78,8 +78,8 @@
token: $('#verify-code').val()},
success: function(data) {
if( data.success){
localStorage.token = data.token;
document.location.href="profile-first-setup.html";
localStorage.token = data.data.token;
}
else{
console.log('wrong code');