mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
16 lines
527 B
TypeScript
16 lines
527 B
TypeScript
|
import BluebirdPromise = require("bluebird");
|
||
|
import { IClient } from "../../../src/lib/ldap/IClient";
|
||
|
import { IPasswordUpdater } from "../../../src/lib/ldap/IPasswordUpdater";
|
||
|
import Sinon = require("sinon");
|
||
|
|
||
|
export class PasswordUpdaterStub implements IPasswordUpdater {
|
||
|
updatePasswordStub: Sinon.SinonStub;
|
||
|
|
||
|
constructor() {
|
||
|
this.updatePasswordStub = Sinon.stub();
|
||
|
}
|
||
|
|
||
|
updatePassword(username: string, newPassword: string): BluebirdPromise<void> {
|
||
|
return this.updatePasswordStub(username, newPassword);
|
||
|
}
|
||
|
}
|