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/master.cpp | |
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/master.cpp')
-rw-r--r-- | src/master.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/master.cpp b/src/master.cpp index bd3e5df..021fdb2 100644 --- a/src/master.cpp +++ b/src/master.cpp @@ -22,6 +22,11 @@ void master::ini( content::master &c ) } else { c.username = ""; } + if( session( ).is_set( "printName" ) ) { + c.printName = session( )["printName" ]; + } else { + c.printName = ""; + } c.login_link = cms.root( ) + "/login"; c.logout_link = cms.root( ) + "/logout"; c.register_link = cms.root( ) + "/register"; |