public static function Utilities::saml_back in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
3 calls to Utilities::saml_back()
- MiniorangeSamlCustomerSetup::miniorange_saml_back in src/
Form/ MiniorangeSamlCustomerSetup.php - Handle back button submit for customer setup.
- miniorange_samlController::miniorange_saml_close_registration in src/
Controller/ miniorange_samlController.php - Utilities::validate_otp_submit in src/
Utilities.php
File
- src/
Utilities.php, line 834
Class
- Utilities
- This file is part of miniOrange SAML plugin.
Namespace
Drupal\miniorange_samlCode
public static function saml_back($called_from_popup = false) {
$db_edit = \Drupal::configFactory()
->getEditable('miniorange_saml.settings');
$db_edit
->set('miniorange_saml_status', 'CUSTOMER_SETUP')
->save();
$db_edit
->clear('miniorange_saml_customer_admin_email')
->save();
$db_edit
->clear('miniorange_saml_customer_admin_phone')
->save();
$db_edit
->clear('miniorange_saml_tx_id')
->save();
if ($called_from_popup == true) {
self::redirect_to_licensing();
}
else {
\Drupal::messenger()
->addMessage(t('Register/Login with your miniOrange Account'), 'status');
}
}