mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
Modify relay logout
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
|
||||
{% block extra_script %}
|
||||
<script type="text/javascript">
|
||||
addConfirmTo($('.logout-btn'), '确定要退出登录?')
|
||||
$('.logout-btn').click(function(){
|
||||
location.href = $(this).attr('data');
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
@@ -25,7 +25,6 @@ def logout_relay(request):
|
||||
|
||||
try:
|
||||
ccnet_rpc.remove_one_binding(request.user.username, peer_id)
|
||||
ccnet_rpc.remove_role(peer_id, "MyClient")
|
||||
except SearpcError, e:
|
||||
return go_error(request, e.msg)
|
||||
|
||||
|
Reference in New Issue
Block a user