diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-07-31 15:30:32 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-07-31 15:30:32 +0200 |
commit | 9f624560ffb625d7766480c4621169025df32c33 (patch) | |
tree | e7ee8a6b90eabf375052ac79829544354fdc3006 /src/cracklib.hpp | |
parent | 54a304276fb361f95332c5c1f8c6f67026b1d96c (diff) | |
download | aCms-9f624560ffb625d7766480c4621169025df32c33.tar.gz aCms-9f624560ffb625d7766480c4621169025df32c33.tar.bz2 |
checking password with cracklib now
added printName (the visible name of the user in registration and login)
Diffstat (limited to 'src/cracklib.hpp')
-rw-r--r-- | src/cracklib.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cracklib.hpp b/src/cracklib.hpp new file mode 100644 index 0000000..0a7f400 --- /dev/null +++ b/src/cracklib.hpp @@ -0,0 +1,13 @@ +#ifndef CRACKLIB_HPP +#define CRACKLIB_HPP + +#include <string> + +typedef struct PasswordCheck { + bool ok; + std::string msg; +} PasswordCheck; + +PasswordCheck checkPassword( const std::string login, const std::string name, const std::string password ); + +#endif |