mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
convert space to plus for invite email parameter
This commit is contained in:
parent
33eca10860
commit
b3926efebc
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ class InvitesController < ApplicationController
|
||||||
def redeem_disposable_invite
|
def redeem_disposable_invite
|
||||||
params.require(:email)
|
params.require(:email)
|
||||||
params.permit(:username, :name, :topic)
|
params.permit(:username, :name, :topic)
|
||||||
|
params[:email] = params[:email].split(' ').join('+')
|
||||||
|
|
||||||
invite = Invite.find_by(invite_key: params[:token])
|
invite = Invite.find_by(invite_key: params[:token])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue