company->getLocale()); /* Set customized translations _NOW_ */ $t->replace(Ninja::transformTranslations($this->company->settings)); $this->user->confirmation_code = $this->createDbHash($this->company->db); $this->user->save(); $react_redirect = ''; if($this->is_react) { $react_redirect = '?react=true'; } $data = [ 'title' => ctrans('texts.confirmation_subject'), 'message' => ctrans('texts.confirmation_message'), 'url' => url("/user/confirm/{$this->user->confirmation_code}".$react_redirect), 'button' => ctrans('texts.button_confirmation_message'), 'settings' => $this->company->settings, 'logo' => $this->company->present()->logo(), 'signature' => $this->company->settings->email_signature, ]; $mail_obj = new \stdClass(); $mail_obj->subject = ctrans('texts.confirmation_subject'); $mail_obj->data = $data; $mail_obj->markdown = 'email.admin.generic'; $mail_obj->tag = $this->company->company_key; $mail_obj->text_view = 'email.admin.verify_user_text'; return $mail_obj; } }