cozy / cozy-home-v2

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

Add recovery tokens generation #769

Closed babolivier closed 8 years ago

babolivier commented 8 years ago

This pull request introduces recovery tokens for the two-factor authentication.

Recovery tokens are tokens that can be used (only once) as authentication code in case the user loses its authentication device. We generate 10 random codes (7 to 8 digit-long, so longer than an usual OTP) and urge the user to copy them somewhere safe (not on Cozy). This pull-request is followed by another on the proxy for the support of the said tokens.

frankrousseau commented 8 years ago

@m4dz or @aenario could you review this PR?

m4dz commented 8 years ago

Al'right. Sounds good to me. Thanks, @babolivier!

babolivier commented 8 years ago

Thanks, just pushed a small edit as suggested :smile: