邀请码去掉前后空格

This commit is contained in:
huang 2016-08-09 17:06:50 +08:00
parent 1588f5cfca
commit 5ae59f6b6c
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].upcase.to_s != @project.invite_code
if !@project || params[:invite_code].strip.upcase.to_s != @project.invite_code
@flag = 1
elsif User.current.member_of?(@project)
@flag = 2