cozy / cozy-proxy

This repository was part of CozyV2 which has been deprecated - Cozy authentication and routing layer
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
26 stars 31 forks source link

Add support for recovery tokens #283

Closed babolivier closed 8 years ago

babolivier commented 8 years ago

Following https://github.com/cozy/cozy-home/pull/769

Support for 2FA recovery tokens. When an user tries to authenticate using one of its recovery tokens, Cozy log the user in, invalidate the used token (by removing it from the known tokens), and sends a notification to the user reminding it on how much tokens are remaining. When there last token is used, another notification is sent, advising the user to regenerate its tokens so new tokens can be used.

frankrousseau commented 8 years ago

@m4dz or @aenario could you review this PR?

m4dz commented 8 years ago

Ok, sounds good to me :+1:

babolivier commented 8 years ago

Thanks, just pushed a small edit as suggested :smile: (well, looks conflicted, I don't see why)

babolivier commented 8 years ago

Git messed my fork's history. I'll recreate a PR tonight.

frankrousseau commented 8 years ago

I merged it. Thank you a lot @babolivier

babolivier commented 8 years ago

Awesome, thanks @frankrousseau