SHARE
TWEET

Untitled

tinyevil Feb 17th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. api.declare("login", {
  2.   {"session_id", types::I32},
  3.   {"login", types::UTF8},
  4.   {"password", types::UTF8}
  5. }, [](ArgPack& args) {
  6.   auto session = find_session(args['session_id'].as<types::I32>());
  7.   if (!session) {
  8.     return Response::Error("session not found");
  9.   }
  10.   ...
  11. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top