Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bolner committed Oct 15, 2021
1 parent b463196 commit f654c23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ServerChallenge.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,18 +184,18 @@ public function HashPassword(string $password, string $saltHashAlgo)
{
$supported = hash_algos();
if (!in_array($this->passwordHashAlgo, $supported)) {
throw new MonetException("The password hash algorith '{$this->passwordHashAlgo}' which was requested "
throw new MonetException("The password hash algorithm '{$this->passwordHashAlgo}' which was requested "
."by the server, is not supported by PHP.");
}

if (!in_array($saltHashAlgo, $supported)) {
throw new MonetException("The salt hash algorith '{$this->passwordHashAlgo}', which was specified "
throw new MonetException("The salt hash algorithm '{$this->passwordHashAlgo}', which was specified "
."in a constructor parameter of the 'Connection' class, is not supported by PHP. "
."The following algorithms are supported by it: ".implode(', ', $supported));
}

if (!in_array($saltHashAlgo, $this->supportedSaltHashes)) {
throw new MonetException("The salt hash algorith '{$this->passwordHashAlgo}', which was specified "
throw new MonetException("The salt hash algorithm '{$this->passwordHashAlgo}', which was specified "
."in a constructor parameter of the 'Connection' class, is not supported by the server. "
."The following algorithms are supported by it: ".implode(', ', $this->supportedSaltHashes));
}
Expand Down

0 comments on commit f654c23

Please sign in to comment.