-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Add change password functionality via LDAP server #5
API Add change password functionality via LDAP server #5
Conversation
$member->FirstName = 'Joe'; | ||
$member->Username = 'jbloggs'; | ||
$member->write(); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More extensive docs rewrite is coming next edit #6
1696f0c
to
3c7897b
Compare
SS core doesn't trigger Edit: I've logged this on framework for now - silverstripe/silverstripe-framework#7435 |
…ifier in success URL
$result = $result ?: ValidationResult::create(); | ||
|
||
/** @var LDAPService $service */ | ||
$service = Injector::inst()->get(LDAPService::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could replace that via Setter Dependency Injection to get the server and allow a custom LDAP Service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, #7
use SilverStripe\Control\Session; | ||
use SilverStripe\Core\Injector\Injector; | ||
use SilverStripe\Dev\SapphireTest; | ||
use SIlverStripe\LDAP\Authenticators\LDAPAuthenticator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be use SilverStripe\LDAP\Authenticators\LDAPAuthenticator; (with a lowercase i)
use SilverStripe\Core\Injector\Injector; | ||
use SilverStripe\Dev\SapphireTest; | ||
use SIlverStripe\LDAP\Authenticators\LDAPAuthenticator; | ||
use SIlverStripe\LDAP\Authenticators\LDAPChangePasswordHandler; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be use SilverStripe\LDAP\Authenticators\LDAPChangePasswordHandler; (with a lowercase i)
use SilverStripe\Dev\SapphireTest; | ||
use SIlverStripe\LDAP\Authenticators\LDAPAuthenticator; | ||
use SIlverStripe\LDAP\Authenticators\LDAPChangePasswordHandler; | ||
use SIlverStripe\LDAP\Forms\LDAPChangePasswordForm; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should be use SilverStripe\LDAP\Forms\LDAPChangePasswordForm; (with a lowercase i)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requirements
Changes