Skip to main content

Practice ยท 1 of 1

The service owns the port

Implement PasswordResetService(notifier): - notifier is ANY object with send(to, message) (define a Notifier Protocol in the solution for documentation) - reset(user, token) sends 'reset token: <token>' to user['email'] and returns True - a user without an email raises ValueError('user has no email') - the service must never import or name a concrete vendor โ€” graded by running it against two DIFFERENT notifier implementations

Difficulty: advanced

Back to lesson: Practice: Boundary Practice