Commit Graph
73 Commits
Author SHA1 Message Date
DarthArgus 1651feb4de squash some of my overly verbose commits that have no uses 2016-09-26 06:27:53 +00:00
DarthArgus dd86cd4190 rearrange and make more descriptive this debug message 2016-09-26 06:27:53 +00:00
DarthArgus 05f8a322fb ConnectionServer: add altPublicBindAddress config option 2016-09-26 06:27:45 +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 e65b05ada9 mostly template initializations to prevent undefined behavior in the
(unlikely) chance some of these properties are used
2016-07-24 21:25:03 -07:00
DarthArgus efaaa4bb42 readd some win32 files so that we can more easily run static analyzers
that are windows only against the source
2016-07-23 18:00:40 -07:00
DarthArgus 478ddced0e always show logins 2016-06-24 02:03:23 +00: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 b99e3e45f9 properly link the executable against curl, instead of the helper lib 2016-04-28 16:57:47 +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 9aeea8732e Revert "remove station related session code"
This reverts commit 0e22ecd027.
2016-04-18 03:56:57 +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 72f11faa33 remove debug line 2016-04-17 22:38:08 +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