{"push_id":845196971,"size":1,"distinct_size":1,"ref":"refs/heads/add-trailing-message-for-reset-attempt-failure","head":"1b4dc8dc7db6ee7c47911c2d479ab3eeac89dd15","before":"30d4bd5307715798b636e5f58929adf42f77df51","commits":[{"sha":"1b4dc8dc7db6ee7c47911c2d479ab3eeac89dd15","author":{"email":"be8758dc4a66004612e74b567a662d4f1fbf4c2e@gmail.com","name":"Tijmen Brommet"},"message":"Add validation error to event log\n\nThere's currently a flow/user experience issue with resetting passwords\nin Signon. This means people who provide a weak password will see an\nincorrect error message that says that they've used their password\nbefore.\n\nThe event log currently only displays messages like this:\n\n`11:56am, 28 Oct 2015 Passphrase reset attempt failure`\n\nThat makes helping users and debugging problems very hard. This commit\nadds the validation errors to the `trailing_message` on the event log,\nwhich is displayed in the UI. This should help us diagnosing problems.\n\nSince `EventLog#trailing_message` is a VARCHAR column, we truncate the\nerror message to 255 characters.","distinct":true,"url":"https://api.github.com/repos/alphagov/signonotron2/commits/1b4dc8dc7db6ee7c47911c2d479ab3eeac89dd15"}]}