Unlock User
If your account has been locked because of exceeded number of unsuccessful login attempts, you may unlock it. To unlock an account, use the following request:
POST http://onapp.test/users/:id/unlock_account.xml
POST http://onapp.test/users/:id/unlock_account.json
XML Request Example
curl -X POST -i -u user:userpass -d '<unlock_token>UbfnJ62YPnoz7H9Sk2pM</unlock_token>' http://onapp.test/users/8/unlock_account.xml -H 'Accept:application/xml' -H 'Content-type:application/xml'
JSON Request Example
curl -X POST -i -u user:userpass -d '{"unlock_token":"UbfnJ62YPnoz7H9Sk2pM"}' http://onapp.test/users/8/unlock_account.json -H 'Accept:application/json' -H 'Content-type:application/json'
Where:
unlock_token - unlock token that will be sent to the user email address.