Skip to content
Snippets Groups Projects
Commit b14b0eea authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch 'hotline#84896_mot_de_passe_oublie' into 'hotline'

hotline #84896: Nanook provides change password service

See merge request !2970
parents 21130807 d9873616
Branches
Tags
5 merge requests!3297WIP: Master,!2985Master,!2983Master,!2982Hotline,!2970hotline #84896: Nanook provides change password service
Pipeline #6153 passed with stage
in 1 hour and 40 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