{"push_id":1345119696,"size":1,"distinct_size":1,"ref":"refs/heads/jy-expire-jobs-for-expired-otp","head":"f6d1d20cc18875b41a38b77997d44a6ec1b3edc7","before":"2bef1bd0d38f039bbea44bae9fc04172a4c99409","commits":[{"sha":"f6d1d20cc18875b41a38b77997d44a6ec1b3edc7","author":{"name":"Jessie A. Young","email":"9a20b5c75aa9501bf0d1f2632d5a338d1b1d6f4a@gmail.com"},"message":"Only run OTP job if code is still valid\n\n**Why**:\n\n* If an async job fires after the OTP is valid, there is no point in\nsending the OTP\n\n**How**:\n\n* Devise / 2 factor auth libs set default otp timeout in\n  `config/initializers/devise.rb`\n* This PR clarifies that by adding the timeout config val in\n  `application.yml`\n* Now, OTP jobs (both SMS and Voice) look at the `direct_otp_sent_at`\n  timestamp. If it is old enough that it is no longer valid, SMS / voice\n  call are not executed\n* Current period for valid OTP is 5 mins\n\n**Also**:\n\n* Rename jobs for clarity\n* Add named args for clarity","distinct":true,"url":"https://api.github.com/repos/18F/identity-idp/commits/f6d1d20cc18875b41a38b77997d44a6ec1b3edc7"}]}
{"actor":{"display_login":"jessieay"}}