Skip to content

Commit

Permalink
Merge 569cf92 into d531c9c
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnet committed Jun 13, 2017
2 parents d531c9c + 569cf92 commit 86a6a90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions actions/user-registration/__tests__/index.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('user-registration', () => {
pathParameters: { realm: 'realm' },
body: querystring.stringify({
client_id: 'client_id',
username: 'test@test.com',
username: 'username',
email: 'test@test.com',
})
}
Expand All @@ -102,7 +102,7 @@ describe('user-registration', () => {
pathParameters: { realm: 'invalid' },
body: querystring.stringify({
client_id: 'client_id',
username: 'test@test.com',
username: 'username',
email: 'test@test.com',
password: 'password'
})
Expand All @@ -123,7 +123,7 @@ describe('user-registration', () => {
pathParameters: { realm: 'realm' },
body: querystring.stringify({
client_id: 'client_id',
username: 'test@test.com',
username: 'username',
email: 'test@test.com',
password: 'password'
})
Expand Down
2 changes: 1 addition & 1 deletion actions/user-registration/__tests__/request.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('userRegistrationRequest', () => {
pathParameters: { realm: 'realm' },
body: querystring.encode({
client_id: 'client_id',
username: 'email@address.com',
username: 'username',
email: 'test@test.com',
})
}
Expand Down
2 changes: 1 addition & 1 deletion actions/user-registration/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const getRequest = event =>
const schema = Joi.object().keys({
realm: Joi.string().required(),
client_id: Joi.string().required(),
username: Joi.string().required(),
username: Joi.string().alphanum().min(4).max(30).required(),
email: Joi.string().email().required(),
password: Joi.string().required(),
redirect_uri: Joi.string()
Expand Down

0 comments on commit 86a6a90

Please sign in to comment.