Commit 6c6dfe8f authored by jan.koester's avatar jan.koester
Browse files

fixed pw api

parent 2865b907
Loading
Loading
Loading
Loading
Loading
+6 −1
Changes for src/api.cpp: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -386,7 +386,12 @@ namespace authdb {

                                class ClientData cdat(gpid);
                                cdat.setName(clientname.c_str());
                                cdat.setKey(clientsecret.c_str());

                                std::string hash;
                                sha512 sha;
                                sha.hash(clientsecret,hash);

                                cdat.setKey(hash.c_str());

                                class Client clt;
                                clt.create(_Backend,&cdat);