|
|
@@ -359,6 +359,12 @@ class AccountsController < ApplicationController |
|
|
Register::LoginCheckColumnsForm.new(check_params.merge(user: current_user)).validate! |
|
|
Register::LoginCheckColumnsForm.new(check_params.merge(user: current_user)).validate! |
|
|
render_ok |
|
|
render_ok |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def check_keywords |
|
|
|
|
|
text = params[:text]&.gsub(/\s+/, "") |
|
|
|
|
|
tip_exception("无法使用以下关键词:#{text},请重新命名") if ReversedKeyword.check_exists?(text) |
|
|
|
|
|
render_ok |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
private |
|
|
private |
|
|
|
|
|
|
|
|
|