Skip to content

Instantly share code, notes, and snippets.

@BerkeSoysal
Last active January 31, 2022 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BerkeSoysal/b960c4ff6ac0289c40b647a183dd133b to your computer and use it in GitHub Desktop.
Save BerkeSoysal/b960c4ff6ac0289c40b647a183dd133b to your computer and use it in GitHub Desktop.
public class PasswordService
{
private PasswordHasher passwordHasher;
public PasswordService(PasswordHasher passwordHasher)
{
this.passwordHasher = passwordHasher;
}
void hashPassword(String password)
{
this.passwordHasher.hashPassword(password);
}
}
@procopym
Copy link

There should be this.passwordHasher instead of hasher. Line 12

@BerkeSoysal
Copy link
Author

thanks @procopym

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment