This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Merge branch 'pre_trustie_server' into trustie_server
pull/342/head
xxq250
2 years ago
parent
02b85859b5
09bab2f462
commit
c6461de871
2 changed files
with
12 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
app/controllers/accounts_controller.rb
+1
-0
config/routes.rb
+ 11
- 0
app/controllers/accounts_controller.rb
View File
@@ -359,6 +359,17 @@ class AccountsController < ApplicationController
Register::LoginCheckColumnsForm.new(check_params.merge(user: current_user)).validate!
render_ok
end
def check_keywords
text = params[:text].to_s.each_char.select { |c| c.bytes.first < 240 }.join('')
data = ! ReversedKeyword.check_exists?(text)
result = {
status: 0,
data: data,
message: data ? "" : "无法使用以下关键词:#{text},请重新命名"
}
render_ok(result)
end
private
+ 1
- 0
config/routes.rb
View File
@@ -261,6 +261,7 @@ Rails.application.routes.draw do
post :remote_password
post :change_password
post :check
post :check_keywords
post :login_check
post :simple_update
end
Write
Preview
Loading…
Cancel
Save