27 lines
594 B
Ruby
27 lines
594 B
Ruby
class ManagementController < ApplicationController
|
|
before_filter :require_admin
|
|
layout 'base_management'
|
|
|
|
def approve
|
|
|
|
end
|
|
|
|
def trial_authorization
|
|
|
|
end
|
|
|
|
def index
|
|
|
|
end
|
|
|
|
def identity_authentication
|
|
type = params[:type] || 0 # 存在type 就用type 没有就为 0
|
|
user_id = User.find_by_sql("select id from users where concat(lastname,firstname) like '%#{params[:name]}%'")
|
|
@unapproved_user = ApplyUserAuthentication.where(:status => type, :user_id => user_id).order("updated_at desc")
|
|
respond_to do |format|
|
|
format.html
|
|
format.js
|
|
end
|
|
end
|
|
end
|