mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
fix: Case insensitive email match (#6760)
Fixes: https://linear.app/chatwoot/issue/CW-1354/email-id-case-sensitive Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
@@ -115,6 +115,11 @@ RSpec.describe 'Platform Users API', type: :request do
|
||||
)
|
||||
)
|
||||
expect(platform_app.platform_app_permissibles.first.permissible_id).to eq data['id']
|
||||
|
||||
post '/platform/api/v1/users/', params: { name: 'test', email: 'TesT@test.com', password: 'Password1!' },
|
||||
headers: { api_access_token: platform_app.access_token.token }, as: :json
|
||||
data = JSON.parse(response.body)
|
||||
expect(data['message']).to eq('Email has already been taken')
|
||||
end
|
||||
|
||||
it 'fetch existing user and creates permissible for the user' do
|
||||
|
||||
Reference in New Issue
Block a user