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.
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.