项目邀请码识别小写

yuanke_cache
huang 9 years ago
parent 24783705b5
commit 0b113bb985

@ -53,7 +53,7 @@ class AppliedProjectController < ApplicationController
else
@project = Project.find(params[:project_id])
end
if !@project || params[:invite_code].to_s != @project.invite_code
if !@project || params[:invite_code].upcase.to_s != @project.invite_code
@flag = 1
elsif User.current.member_of?(@project)
@flag = 2

Loading…
Cancel
Save