-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use only verified email address to prevent fake email address
Co-authored-by: David Taylor <[email protected]>
- Loading branch information
1 parent
45cf13d
commit b37d540
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,6 +252,21 @@ | |
end | ||
end | ||
|
||
context 'with a spoofed email in the user payload' do | ||
before do | ||
request.params['user'] = { | ||
name: { | ||
firstName: 'first', | ||
lastName: 'last' | ||
}, | ||
email: "[email protected]" | ||
}.to_json | ||
end | ||
|
||
it 'should return the true email' do | ||
expect(subject.info[:email]).to eq('[email protected]') | ||
end | ||
end | ||
end | ||
|
||
describe '#extra' do | ||
|