Skip to content
Snippets Groups Projects
Commit d9873616 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

hotline #84896: Nanook provides change password service

parent f7095103
Branches
Tags
5 merge requests!3297WIP: Master,!2985Master,!2983Master,!2982Hotline,!2970hotline #84896: Nanook provides change password service
Pipeline #6121 passed with stage
in 30 minutes and 46 seconds
- ticket #84896 : SIGB Nanook : activation de la réinitialisation des mots de passe par courriel
\ No newline at end of file
......@@ -125,6 +125,11 @@ class Class_Webservice_SIGB_Nanook_Service extends Class_WebService_SIGB_Abstrac
}
public function providesChangePasswordService() {
return true;
}
public function saveEmprunteur($emprunteur) {
$xml = $this->getWebClient()
->postData($this->buildQueryURL(['service'=>'UpdatePatronInfo',
......
......@@ -92,6 +92,15 @@ class Class_User_LostPassSendTest extends ModelTestCase {
}
/** @test */
public function withNanookMailShouldContainsResetLink() {
$this->_sigb->setCommSigb(Class_IntBib::COM_NANOOK)->save();
(new Class_User_LostPass($this->_user))->send();
$mail = $this->_mail_transport->getSentMails()[0]->getBodyText()->getContent();
$this->assertContains('/auth/reset-password', $mail);
}
/** @test */
public function withPergameShouldNotsendMail() {
$this->_sigb->setCommSigb(Class_IntBib::COM_PERGAME)->save();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment