Michael Bumann
b1dd3012fd
Remove sensitive data from JWT and add expiry
2022-01-16 13:26:42 +00:00
Michael Bumann
95512462f6
Cleanup typos ( #28 )
...
* Typo
* Typoc
2022-01-16 14:13:45 +01:00
Michael Bumann
2c19244cad
Fix auth controller update ( #31 )
...
* Fix auth controller update
We should update the user here
* Remove database update on auth call as we simply rely on JWT
2022-01-16 14:11:49 +01:00
Michael Bumann
8bc060697f
Only warn if the .env file can not be loaded ( #29 )
...
.env files should be optional in a production environment it is likely that the env variables are set explicitely and not through a file
2022-01-16 14:10:27 +01:00
Roman Useinov
628071160c
Cleanup ( #25 )
...
* remove cmd folder as we are going to have only one entrypoint
* get rid of pkg directory
* rename test -> integration_tests as unit tests should reside next to the actual files they are testing
* database migration WIP
* reinstate gorm boilerplate in the addinvoice for now to make it compile
* introduce migrations
* add Makefile
* don't use unsigned types for database mappings
* migrations work now
* add build target
* use echo groups
* gorm removed
* add envconfig
* fix comments
2022-01-16 00:49:19 +01:00
Viktor Patchev
17e528b461
Add logging to file option ( #20 )
...
* Add logging to file option
* Remove log and add correct env variable
* fail if no log file can be created
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
2022-01-14 21:54:53 +01:00
Roman Useinov
3c54f94250
Merge pull request #21 from getAlby/add-exception-tracking-option
...
Sentry initialization
2022-01-14 20:47:39 +00:00
Roman Useinov
2b0c36ef3f
make sentry optional and panic on error
2022-01-14 20:47:19 +00:00
Roman Useinov
7af5b2c54b
sort imports
2022-01-14 20:42:32 +00:00
Viktor Patchev
0ccc4ed47d
Sentry initialization
2022-01-14 18:45:01 +01:00
Michael Bumann
c654669c7b
Merge pull request #16 from getAlby/gettxs-endpoint
...
Get TXS endpoint
2022-01-14 03:18:08 +02:00
Michael Bumann
d1b33ec65c
Merge branch 'main' into gettxs-endpoint
2022-01-14 03:18:00 +02:00
Michael Bumann
75200362a4
Merge pull request #17 from getAlby/checkpayment-endpoint
...
Check Payment endpoint
2022-01-14 03:17:31 +02:00
Michael Bumann
6c72aab6f0
Merge branch 'main' into checkpayment-endpoint
2022-01-14 03:17:23 +02:00
Michael Bumann
fc65643008
Merge pull request #15 from getAlby/balance-endpoint
...
Balance endpoint
2022-01-14 03:16:33 +02:00
Viktor Patchev
4c41864fcf
Check Payment endpoint
2022-01-13 20:11:15 +01:00
Viktor Patchev
f61ffba545
Consistent file naming
2022-01-13 20:02:31 +01:00
Viktor Patchev
e3e752af5c
Consistent file naming
2022-01-13 20:00:51 +01:00
Viktor Patchev
742bea615e
Get TXS endpoint
2022-01-13 19:55:38 +01:00
Michael Bumann
ba2719a59b
Merge remote-tracking branch 'origin/main'
...
* origin/main:
Return not hashed password
2022-01-13 19:52:31 +01:00
Michael Bumann
53b7ff636b
Merge pull request #27 from bumi/return-not-hashed-password
...
Return not hashed password
2022-01-13 20:51:49 +02:00
Viktor Patchev
c783e41354
Balance endpoint
2022-01-13 19:16:43 +01:00
Viktor Patchev
ea700a117e
Return not hashed password
2022-01-13 17:27:58 +01:00
Michael Bumann
1ac2934006
Merge remote-tracking branch 'getalby/main'
...
* getalby/main:
Fix request body
Add payinvoice endpoint
Update notes.md
Update notes.md
2022-01-13 17:27:16 +01:00
Michael Bumann
764fde7703
Update notes.md
2022-01-13 17:20:55 +01:00
Michael Bumann
6799e23f40
Update notes.md
2022-01-13 17:20:55 +01:00
Michael Bumann
a56d836185
Merge pull request #16 from bumi/add-password-hashing
...
Add password hashing
2022-01-13 18:20:37 +02:00
Viktor Patchev
4cf70f1853
Compare password hash after fetching the user
2022-01-13 17:09:36 +01:00
Viktor Patchev
c316a9a4a9
Fix import
2022-01-13 17:07:49 +01:00
Viktor Patchev
37ee9f731b
Merge branch 'main' into add-password-hashing
2022-01-13 17:05:59 +01:00
Viktor Patchev
182873b286
Fix request body
2022-01-13 12:02:04 +01:00
Viktor Patchev
324aa78d3e
Add payinvoice endpoint
2022-01-13 12:02:04 +01:00
Michael Bumann
19cf10af1b
Merge pull request #26 from bumi/payinvoice-endpoint
...
Add payinvoice endpoint
2022-01-13 13:01:15 +02:00
Viktor Patchev
cda87b7f77
Fix request body
2022-01-13 10:08:47 +01:00
Viktor Patchev
477d524cc3
Add payinvoice endpoint
2022-01-12 18:16:31 +01:00
Michael Bumann
d3672520d2
Update notes.md
2022-01-12 17:42:42 +02:00
Michael Bumann
f24ca85b1c
Update notes.md
2022-01-12 17:42:19 +02:00
Michael Bumann
8b9038a037
Merge branch 'pure-go-sqlite'
...
* pure-go-sqlite:
Use pure go implementaiton for sqlite
# Conflicts:
# pkg/database/database.go
2022-01-11 11:10:14 +01:00
Viktor Patchev
169c30aa27
Merge pull request #25 from bumi/models2
...
why models2?
2022-01-11 00:11:44 +01:00
Michael Bumann
1060eca626
why models2?
2022-01-10 22:52:59 +01:00
Michael Bumann
b0c43f153a
Merge pull request #23 from bumi/change-folder-structure
...
Change folder structure
2022-01-10 23:52:11 +02:00
Michael Bumann
1cb0ec3739
Use pure go implementaiton for sqlite
...
apparently CGO is a bit of a pain?
2022-01-10 22:06:27 +01:00
Viktor Patchev
b3584bbc14
Change controller types names
2022-01-10 21:22:40 +01:00
Viktor Patchev
1ee2bdb909
Change folder structure
2022-01-10 21:15:30 +01:00
Michael Bumann
32adea127e
Merge pull request #20 from bumi/database-connection-uri
...
Database uri logic refactor
2022-01-09 19:09:54 +02:00
Michael Bumann
551bd55dba
Default to sqlite databse
2022-01-09 18:09:29 +01:00
Michael Bumann
68a9b199bb
Support only database URIs in the config
2022-01-09 18:07:38 +01:00
Michael Bumann
baab584c4b
Merge pull request #21 from bumi/fix-indexes
...
Fix indexes
2022-01-09 18:44:16 +02:00
Michael Bumann
691989c693
Merge pull request #22 from bumi/nullstring-fixes
...
NullString fixes
2022-01-09 18:43:38 +02:00
Viktor Patchev
76cc532079
NullString fixes
2022-01-09 15:47:45 +01:00