解除ip限制

dev_local
cxt 6 years ago
parent 5f9b7c7741
commit fc8ecd706b

@ -2049,6 +2049,11 @@ end
end
end
# 解除ip限制
def cancel_ip_limit
LoginIpInfo.destroy_all
end
# 0 全部1 活动的; 2 已注册; 3 锁定
def users
@menu_type = 7

@ -33,7 +33,7 @@ class UsersController < ApplicationController
menu_item :user_messages, :only => :user_messages
#
before_filter :local_exam, only: [:user_tidings]
before_filter :can_show_course, :only => [:user_courses, :user_homeworks]
before_filter :check_authentication, :except => [:name_update, :realname_update, :update_user_pro, :update_user_location, :send_message_to_administrator, :show_or_hide_realname]

@ -0,0 +1 @@
notice_box("解除成功");

@ -24,7 +24,7 @@
<input type="text" class="fl task-form-100 task-height-40 panel-box-sizing" name="research_contents" placeholder="输入关键字进行搜索">
</div>
<li class="fl task-height-30 ml10" style="display: inline-block">
<input nhname="tag" autocomplete="off" maxlength="36" nh_tag_0="true" nh_tag_1="true" nh_tag_3="true" name="school" class="task-height-40 panel-box-sizing fl" type="text" placeholder="请输入单位名称关键字进行搜索" style="width: 240px" />
<input nhname="tag" autocomplete="off" maxlength="36" nh_tag_0="true" nh_tag_1="true" nh_tag_3="true" name="school" class="task-height-40 panel-box-sizing fl" type="text" placeholder="请输入单位名称关键字进行搜索" style="width: 200px" />
<input nhname="tag" nh_tag_5="true" class="fl" id="school_id" name="school_id" style="display:none;" type="text"/> <!-- 单位名称的test框选中下拉列表框的id -->
<div class="cl"></div>
</li>
@ -36,7 +36,8 @@
<a href="javascript:void(0);" onclick="import_student_accounts();" class="fl ml20 task-btn task-btn-orange mt5">账号生成</a>
<a href="javascript:void(0);" onclick="import_course_members();" class="fl ml10 task-btn task-btn-orange mt5">课堂添加成员</a>
<% end %>
<a href="<%= cancel_ip_limit_managements_path %>" data-method="delete" data-remote="true" class="fl ml10 task-btn task-btn-orange mt5">解除ip限制</a>
<% end %>
</div>
<div class="edu-con-bg01 mt15" id="managements_user_list">
<%= render :partial => "managements/user_list" %>

@ -723,6 +723,7 @@ RedmineApp::Application.routes.draw do ## oauth相关
delete :delete_customers
get :customers_list
post :unlock_user_ip
delete :cancel_ip_limit
end
end
# Enable Grack support

Loading…
Cancel
Save