Enable 2-step Authentication by Email
To enable 2-step authentication by email, the following settings are required
### Setup to Send Email
[Set up to send emails from Pleasanter](/manual/smtp-mail)
Be sure to set "SupportFrom" in [Mail.json](/manual/mail.json).
### Set the user's email address
[User management function](/manual/user)
### Enabled by SecondaryAuthentication parameter in Security.json
[Parameter setting:Security.json](/manual/security-json)
```
"SecondaryAuthentication": {
"Mode": "DefaultEnable",
"NotificationType": "Mail",
"AuthenticationCodeCharacterType": "Number",
"AuthenticationCodeLength": 8,
"AuthenticationCodeExpirationPeriod": 300
}
```
# Try Log-in
After enabling 2-step authentication by email, when you log in, you will be redirected to the confirmation code input screen.
![image](https://pleasanter.org/binaries/d8c45b235d2344b895104bd4a3ae84e9)
When you log in, the following email will be sent to the email address registered in your user information.
```
<Subject>
Pleasanter authentication code
<From>
"Pleasanter.org" <support@pleasanter.org>
<Main Message>
Use the following code as the Pleasanter authentication code.
Authentication code: 69231688
Thank you for using Pleasanter.
```
Enter the confirmation code within the validity period of the confirmation code and login.