Skip to content

Commit

Permalink
Fixed login failed bug & clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Aug 6, 2017
1 parent c66a83b commit ded27fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Template/Xenon/panel/_footer.htm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<script src="{RESOURCE}/js/joinable.js"></script>
<script src="{RESOURCE}/js/jquery-validate/jquery.validate.min.js"></script>
<script src="{RESOURCE}/js/toastr/toastr.min.js"></script>
<script src="{RESOURCE}/js/xenon-api.js"></script>
<script src="{RESOURCE}/js/xenon-toggles.js"></script>
<script src="{RESOURCE}/js/xenon-custom.js"></script>
<script src="{RESOURCE}/js/xenon-widgets.js"></script>
</body>
</html>
7 changes: 5 additions & 2 deletions Template/Xenon/panel/login.htm
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,14 @@
$("form#login").validate({
rules: {
email: {required: true},
passwd: {required: true}},
passwd: {required: true}
},
messages: {
email: {required: "请输入用户名."},
passwd: {required: "请输入密码."}},
passwd: {required: "请输入密码."}
},
submitHandler: function(form) {
console.log('form#login submit');
$('button[type="submit"]').attr('disabled',"true");
show_loading_bar(70);
$.ajax({
Expand Down
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ function print_arr($arr) {
}
}*/
$return_arr = [];
$resPath = ROOT_PATH . 'Resource/';
$return_arr = [];
$resPath = ROOT_PATH . 'Resource/';
exec("unzip -o -d $resPath $resourcePath", $return_arr);
print_arr($return_arr);
print_arr($return_arr);
}
echo 'Copying resources...';
copyDir(ROOT_PATH . 'Resource', ROOT_PATH . 'Public/Resource');
Expand Down

0 comments on commit ded27fc

Please sign in to comment.