Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Delegate Request
Hi. I'm running vanilla on a local net with around 300 users. My users shall be able to access samba shares with their vanilla account. Therefore I'd like to write an extension, which synchronizes the vanilla passwords with samba's password database. To make that possible, I need a new 'PostPasswordChange' Delegate in 'Vanilla.Control.PasswordForm.php'.
I'm not much into the Vanilla code yet, but as I see it, the
$this->CallDelegate('PostPasswordChange');
line should go after line 39:
if ($this->UserManager->ChangePassword($this->User)) {
Cheers, sethorizer
0
This discussion has been closed.
Comments
Index: src/library/Vanilla/Vanilla.Control.PasswordForm.php =================================================================== --- src/library/Vanilla/Vanilla.Control.PasswordForm.php (revision 737) +++ src/library/Vanilla/Vanilla.Control.PasswordForm.php (working copy) @@ -37,6 +37,7 @@ $this->User->UserID = $UserID; if ($this->PostBackAction == 'ProcessPassword' && $this->IsValidFormPostBack()) { if ($this->UserManager->ChangePassword($this->User)) { + $this->CallDelegate('PostPasswordChange'); $Url = GetUrl($this->Context->Configuration, $this->Context->SelfUrl, '', '','','','Success=1'); Redirect($Url, '302', '', 0); }
It will be in vanilla 1.1.5.