add block/unblock service

This commit is contained in:
Antonio Ramirez
2016-12-04 23:20:33 +01:00
parent bda69d38af
commit be80b12a03
4 changed files with 35 additions and 4 deletions

View File

@ -29,6 +29,11 @@ class SecurityHelper
return $this->security->generatePasswordHash($password, $cost);
}
public function generateRandomString($length = 32)
{
return $this->security->generateRandomString($length);
}
public function validatePassword($password, $hash)
{
return $this->security->validatePassword($password, $hash);