aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/com.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/com.js')
-rw-r--r--src/js/com.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/com.js b/src/js/com.js
index 3e50173..64d76a2 100644
--- a/src/js/com.js
+++ b/src/js/com.js
@@ -684,10 +684,10 @@ var com = new function(){
imc.Auth.change_current_iden(idendesc)
- if((cookie = that.get_cookie()) != null){
+ if((cookie = that.get_cookie()).uid != undefined){
that.call_backend('core/user/','cookie_login',function(result){
if(that.is_callerr(result)){
- //TODO GE
+ index.add_alert('','登入發生錯誤');
}else{
imc.Auth.change_current_iden(result.data.idendesc);
user.uid = imc.Auth.get_current_iden().uid;