Templates

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:

ParameterDescription
$vars.brandFilled with the data from config/ssofy.php -> OTP Settings.
$codeThe 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:

ParameterDescription
$vars.brandFilled with the data from config/ssofy.php -> OTP Settings.
$codeThe 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:

ParameterDescription
$errorTitle of the error.
$descriptionThe cause of the error.
ssofyKnowledge Base
At our core, we believe that staying up-to-date with the latest trends and advancements in Authentication and related areas is essential. That's why we take great pride in keeping you informed with the latest insights, updates, and news in this rapidly evolving landscape.


Do you need support?
SSOfy is by Cubelet Ltd.
Copyright © 2024 Cubelet Ltd. All rights reserved.