Commit graph

495 commits

Author SHA1 Message Date
Jonathan Barrow
da3516baed
generateToken() now uses cache and async fs 2022-09-24 19:28:07 -04:00
Jonathan Barrow
754f2fb85c
Forgot to add name to cache set 2022-09-24 19:08:48 -04:00
Jonathan Barrow
8172c1cac9
/service_token/@me uses cache and async fs 2022-09-24 19:02:32 -04:00
Jonathan Barrow
82e4080199
decryptToken() now uses async functions 2022-09-24 18:51:31 -04:00
Jonathan Barrow
663872e3c7
decryptToken() now uses file cache 2022-09-24 18:48:27 -04:00
Jonathan Barrow
64e12fa667
Changed name from cert to key for RSA keys in cache 2022-09-24 18:45:18 -04:00
Jonathan Barrow
0996df985e
Add encoding option to cache 2022-09-24 18:40:30 -04:00
Jonathan Barrow
8af546714e
Removed duplicate code from cache 2022-09-24 18:36:18 -04:00
Jonathan Barrow
c2a8d3a4bd
Added null check to cache 2022-09-24 18:31:13 -04:00
Jonathan Barrow
9e921ea9eb
Removed extar tab 2022-09-24 18:28:24 -04:00
Jonathan Barrow
14b2c73986
Added start of redis cache 2022-09-24 18:23:35 -04:00
Jonathan Barrow
71f171e51d
Return error on XML parse error 2022-09-24 18:22:47 -04:00
Jonathan Barrow
81585da939
Made getUserBasic spec issue more clear 2022-09-24 08:41:02 -04:00
Jonathan Barrow
b2c1d73e51
Don't use this in database.js 2022-09-24 08:36:57 -04:00
Jonathan Barrow
a38af2825d
Removed older dockerfile 2022-09-24 08:33:35 -04:00
Jonathan Barrow
2537282de6
Merge pull request #46 from PretendoNetwork/master
Merge master to dev (get back on track)
2022-09-24 08:21:17 -04:00
Jonathan Barrow
886ea01e2d
Merge branch 'master' of https://github.com/PretendoNetwork/account 2022-09-19 17:24:19 -04:00
Jonathan Barrow
7b6a7a5b1a
Add ability to change Mii data via api 2022-09-19 17:22:32 -04:00
Jonathan Barrow
957fbaa395
Merge pull request #38 from PretendoNetwork/add-license-1
Create LICENSE
2022-08-16 19:40:26 -04:00
Jonathan Barrow
cd2a0ba59b
Create LICENSE
Update the license to AGPLv3

Need permission from the following contributors to continue:

- [ ] @andreluis034
- [ ] @mrjvs  
- [ ] @superwhiskers  
- [ ] @ThatNerdyPikachu  
- [ ] @SuperMarioDaBom  
- [ ] @lukeeey  
- [ ] @CaramelKat
2022-08-13 20:43:16 -04:00
Jonathan Barrow
0caa1b9b66 Only store Discord user ID 2022-07-15 20:47:56 -04:00
Jonathan Barrow
da9b2f66fe Safer connection updates 2022-07-15 20:28:42 -04:00
Jonathan Barrow
005e0c1e94 API auth middleware 2022-07-10 13:19:59 -04:00
Jonathan Barrow
d18ac8fd18 NASC SVCLOC stub 2022-06-08 17:29:29 -04:00
Jonathan Barrow
2a14ff688c prettyfy api response 2022-06-08 16:19:44 -04:00
Jonathan Barrow
89029e61db
Merge pull request #36 from PretendoNetwork/docker
updated dockerfile
2022-05-09 07:57:10 -04:00
mrjvs
e5de5d4a70 update entrypoint with proper file checking 2022-05-09 13:08:18 +02:00
mrjvs
81dbe2af1e check for correct files in docker entrypoint + elaboration 2022-05-08 15:18:23 +02:00
mrjvs
c9f3ea13e1 add node_modules to dockerignore 2022-05-08 15:18:01 +02:00
mrjvs
8a8efb44f9 update dockerfile to nodejs 18 2022-05-08 15:17:52 +02:00
Jonathan Barrow
cb64ff1706
Merge pull request #35 from PretendoNetwork/docker
Docker
2022-05-07 19:57:15 -04:00
mrjvs
fdde32e70a modify code to support docker 2022-05-07 22:43:24 +02:00
mrjvs
d03122a4a6 add docker file 2022-05-07 22:43:12 +02:00
Jonathan Barrow
402f6e3e2e Fixed password reset not working 2022-02-17 16:41:23 -05:00
Jonathan Barrow
5498b38907 we need util to work 2022-02-17 15:24:39 -05:00
Jonathan Barrow
b8b19dc047 Body's are maps not objects 2022-02-17 15:17:46 -05:00
Jonathan Barrow
9fd1660c00 implement password resent (fixes #24) 2022-02-17 14:54:30 -05:00
Jonathan Barrow
85f6c45938 Changed to Mongoose .save from .update 2022-02-17 14:46:02 -05:00
Jonathan Barrow
3285fafc95 Implemented email change endpoints (fixes #23) 2022-02-17 14:18:05 -05:00
Jonathan Barrow
398aef5156 Implemented /v1/api/people/@me (#25 and #26) 2022-02-17 11:00:51 -05:00
Jonathan Barrow
ed394c3613 Fix mii image api URLs 2022-02-15 15:54:40 -05:00
Jonathan Barrow
b75f63f846 moved client header check middleware to main NNID router 2022-02-14 08:09:53 -05:00
Jonathan Barrow
4399b225de updated endpoint comments 2022-02-14 07:48:37 -05:00
Jonathan Barrow
022629bcef mapped_ids API now behaves properly (fixes #31) 2022-02-13 18:21:16 -05:00
Jonathan Barrow
d92d4f3e89 renamed "account" service to "nnid" 2022-02-06 18:01:18 -05:00
Jonathan Barrow
3bc805a6bf NASC should check NEX access level not device 2022-01-29 16:37:32 -05:00
Jonathan Barrow
a1831ec4af wrong server name attribute 2022-01-28 21:19:29 -05:00
Jonathan Barrow
ea2f6b2596 only check if PID linked if PID is sent 2022-01-28 21:15:54 -05:00
Jonathan Barrow
0f5a0f1a42 more server checks in NASC 2022-01-28 20:01:39 -05:00
Jonathan Barrow
9e3a48e87e util doesnt import util 2022-01-28 09:07:27 -05:00