The SSOfy Laravel package publishes vendor templates (blade views) that let you change the appearance of the Email and SMS body sent to users.
php artisan vendor:publish --tag=ssofy:views
Once done, the views can be found under the resources/views/vendor/ssofy/
directory.
The Email template may be found in resources/views/vendor/ssofy/otp/email.blade.php
.
The exposed data are as follows:
Parameter | Description |
---|---|
$vars.brand | Filled with the data from config/ssofy.php -> OTP Settings. |
$code | The generated OTP code that will be delivered to the user. |
The SMS template may be found in resources/views/vendor/ssofy/otp/sms.blade.php
.
The exposed data are as follows:
Parameter | Description |
---|---|
$vars.brand | Filled with the data from config/ssofy.php -> OTP Settings. |
$code | The generated OTP code that will be delivered to the user. |
If everything is configured properly, this shouldn't generally happen, but if the login process fails and the user is redirected back to your server, an error message will be displayed to them with the message coming from SSOfy.
The Error template can be customized in resources/views/vendor/ssofy/error.blade.php
.
The exposed data are as follows:
Parameter | Description |
---|---|
$error | Title of the error. |
$description | The cause of the error. |