Commit Graph
54 Commits
Author SHA1 Message Date
DarthArgus 9bb310e65e try without as its somehow breaking stuff 2016-10-03 00:23:17 -05:00
DarthArgus e455a0d244 whoops 2016-10-03 00:22:16 -05:00
DarthArgus 7a48471d6d cleanup on udplib if, and hopefully properly disconnect on unsuccessful
logins to prevent blocking legit users - will have to test dossing after
this
2016-10-03 00:13:50 -05:00
DarthArgus 7a6a1daf94 fix a logic mistake i made 2016-10-01 01:35:00 +00:00
DarthArgus 03ac0ab78f should be it for CS and Login 2016-09-30 17:12:10 -05:00
DarthArgus 93735f9c3c silence unless the client has a legit station id 2016-09-26 06:28:09 +00:00
DarthArgus 41639d8156 better oci error reporting 2016-09-26 06:27:53 +00:00
DarthArgus dd9417642c for nullable types we'll need to create a proper function outside the template for them 2016-09-26 06:24:21 +00:00
DarthArgus 06925a9219 change to use bools as passed from the frontend (yay! less comparisons!) 2016-09-26 06:24:20 +00:00
DarthArgus f7d5eeb160 so the result buffer/string wasn't being parsed by the json class because even using the "proper" ways of comparing the char * to "application/json" weren't working...ugh 2016-08-20 13:44:33 +00:00
DarthArgus 5f0e741a72 make the webAPI more generic so that we can use it in a more standardized fashion 2016-08-20 11:19:23 +00:00
DarthArgus 465aed03b4 remove unnecessary check 2016-08-06 03:22:16 +00:00
DarthArgus 537ed4ce53 make this string a static const... we basically just keep using it so why not? 2016-08-06 02:56:06 +00:00
DarthArgus 207449547f cleanups and clarity 2016-08-06 02:35:55 +00:00
DarthArgus 00fef810e7 prevent the insanity of specifying (usually) defaults 2016-08-06 02:00:49 +00:00
DarthArgus a9fa196e5f did i say simpler? i'm not sure if this is more or less simple...but it is secure and operates how we need... @apathy audit please? 2016-08-05 01:09:25 +00:00
DarthArgus 46e985f72a reposition a sanity check 2016-08-04 21:49:12 +00:00
DarthArgus 91cd9b60ec needs QA/TEST before even seeing TC - implement login based on returned username from web api 2016-08-04 21:36:55 +00:00
apathy 37e50708b7 Only resize if length is longer than max_account_name_length 2016-08-04 11:23:47 -07:00
apathy 648e5807a0 truncate the id to MAX_ACCOUNT_NAME_LENGTH before generating station id's 2016-08-04 03:21:32 -07:00
DarthArgus 41cd9ff9b3 will it end? 2016-06-21 18:59:05 +00:00
DarthArgus 23d910c53d i realize this adds another one time-ish use var, but i'm more comfortable if we trim stuff on both this and the receiving end 2016-06-18 22:24:31 +00:00
DarthArgus 5da4ab7b76 truly fix the ghosting problem this time 2016-06-18 01:40:33 +00:00
DarthArgus f5df9f29d2 close another loophole that allowed ghost accounts 2016-06-17 06:42:19 +00:00
DarthArgus b27d82ff39 no more spaces for extra secret slots - closes #34 2016-06-01 04:04:30 +00:00
DarthArgus a05e61e0fe the response should never be empty but we need to check the json lib for exceptions and return appropriately... + cleanup a bit - closes #33 2016-05-22 17:44:00 +00:00
DarthArgus ade6e1f1d0 we only use this var once, no reason to keep it... 2016-05-05 14:34:47 +00:00
DarthArgus 6049da78af all working! thanks for the cmake help, @devcodex! 2016-04-28 17:23:30 +00:00
DarthArgus 5f7cf7e969 this is closer but still not building correctly 2016-04-28 03:28:12 +00:00
DarthArgus baecfbebb6 has linker error! but this should be a good start on breaking out our changes and web api into a standalone library/namespace 2016-04-27 21:54:10 +00:00
DarthArgus 52672794fe actually, i'll strip the array on the php side 2016-04-24 18:37:18 +00:00
DarthArgus f25da4f7f2 i'm a doofus and failed to notice the message is being returned as an array 2016-04-24 18:36:16 +00:00
DarthArgus 5fc9a0e689 TEMP FIX HACK TODO - for whatever reason spaced strings seem to return as arrays when using the json parser's .get function 2016-04-24 18:14:31 +00:00
DarthArgus 1507b19b3a this properly sends all the data; @devcodex please do a review on this as i'm not 100% sure all these types i'm using (or vars) are necessary 2016-04-24 09:13:15 +00:00
DarthArgus e2d9042667 better way...since the last one was broken 2016-04-24 07:01:36 +00:00
DarthArgus f273239cfb use existing var 2016-04-24 06:55:46 +00:00
DarthArgus 7f1c59a44c just evaluate these as bools 2016-04-18 20:02:49 +00:00
DarthArgus a82bb979d7 reduce code complexity/readability, hopefully make slightly faster 2016-04-18 19:52:56 +00:00
DarthArgus 64a4daada5 add a more proper check to look for an empty string 2016-04-17 22:50:41 +00:00
DarthArgus 8bce22b7b1 remove "wtf" debug test line 2016-04-17 22:42:13 +00:00
DarthArgus 99a267b59f add ip address and station id to our request so we can alias them in the db on the php side (todo) 2016-04-17 22:26:56 +00:00
DarthArgus 1405ff948d finally this bitch is working with the php auth system 2016-04-17 22:21:56 +00:00
DarthArgus a10e8c28cd let's use post 2016-04-17 19:21:45 +00:00
DarthArgus a76c5dd70b make things more standardized 2016-04-17 19:17:41 +00:00
DarthArgus 0e22ecd027 remove station related session code 2016-04-17 04:38:16 +00:00
DarthArgus 81b05726ce catch any stupid or lazy mistakes that could be made... 2016-04-17 02:13:05 +00:00
DarthArgus 61298b7468 add "json for modern c++" json.hpp file and implement it; it is in a higher level dir so we can add it elsewhere if need be; up next we want to add an option to have an endpoint GET requested on character creation with the suid and character name 2016-04-17 02:06:13 +00:00
DarthArgus c7f986bafc remove redundant call 2016-04-16 23:58:01 +00:00
DarthArgus 600a78cfe1 add skeleton of auth system based on previous work by parz1val, you need to install libcurl4-gnutls-dev (libcurl4-gnutls-dev:i386 if a 64 bit host) 2016-04-16 23:26:43 +00:00
DarthArgus 03dc62efba newer standards prefer nullptr over NULL - this is most of them but there are others too 2016-02-15 00:07:31 -06:00