项目邀请码识别小写

This commit is contained in:
huang 2016-08-02 11:25:19 +08:00
parent 24783705b5
commit 0b113bb985
1 changed files with 1 additions and 1 deletions

View File

@ -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