mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
adding user infos (first and last name)
This commit is contained in:
parent
12a8a34656
commit
3dfd9fa148
@ -94,6 +94,12 @@ Poco::JSON::Object* JsonGetUserInfos::handle(Poco::Dynamic::Var params)
|
||||
else if (parameterString == "user.pubkeyhex") {
|
||||
jsonUser.set("pubkeyhex", userModel->getPublicKeyHex());
|
||||
}
|
||||
else if (parameterString == "user.first_name") {
|
||||
jsonUser.set("first_name", userModel->getFirstName());
|
||||
}
|
||||
else if (parameterString == "user.last_name") {
|
||||
jsonUser.set("last_name", userModel->getLastName());
|
||||
}
|
||||
}
|
||||
catch (Poco::Exception& ex) {
|
||||
jsonErrorsArray.add("ask parameter invalid");
|
||||
|
||||
@ -12,6 +12,8 @@
|
||||
#include "model/table/User.h"
|
||||
#include "model/table/EmailOptIn.h"
|
||||
|
||||
#include "Poco/DateTimeParser.h"
|
||||
|
||||
#ifndef _TEST_BUILD
|
||||
|
||||
|
||||
@ -24,7 +26,9 @@ int main(int argc, char** argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
std::string dateTimeString = __DATE__;
|
||||
printf("date time string: %s\n", dateTimeString.data());
|
||||
//Poco::DateTime buildDateTime = Poco::DateTimeParser::parse();
|
||||
|
||||
ServerConfig::g_versionString = "0.20.KW13.02";
|
||||
printf("User size: %d Bytes, Session size: %d Bytes\n", sizeof(User), sizeof(Session));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user