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
修复: 合并从develop
pull/313/head
yystopf
4 years ago
parent
9979c87d0c
e36c7a4b6a
commit
ad9bb8e542
2 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
app/controllers/users_controller.rb
+5
-1
app/views/users/email_search.json.jbuilder
+ 0
- 1
app/controllers/users_controller.rb
View File
@@ -305,7 +305,6 @@ class UsersController < ApplicationController
def email_search
return render_error('请输入email') if params[:email].blank?
@user = User.find_by(mail: params[:email])
return render_not_found unless @user.present?
end
private
+ 5
- 1
app/views/users/email_search.json.jbuilder
View File
@@ -1 +1,5 @@
json.partial! 'users/user', locals: { user: @user }
if @user.present?
json.partial! 'users/user', locals: { user: @user }
else
json.null
end
Write
Preview
Loading…
Cancel
Save