97 Commits

Author SHA1 Message Date
073b17b4c0 Add ModelService 2016-12-27 00:47:56 +01:00
e8574ebd0a Use TemplateData for dashboard 2016-12-27 00:47:47 +01:00
1ee88466f2 Use Token field instead of GetToken 2016-12-27 00:47:36 +01:00
e525fdc928 Rename to Service
Add ModelService interface to merge all Services
2016-12-27 00:47:10 +01:00
5b9b2e02a0 Return pointers 2016-12-27 00:45:30 +01:00
30d9da1c81 Show budgets on dashboard 2016-12-27 00:29:01 +01:00
5754b97e4d Add data 2016-12-27 00:28:52 +01:00
0037cf045c Fix Budgets relation 2016-12-27 00:28:31 +01:00
649b272caf Use AbortWithError 2016-12-27 00:28:19 +01:00
7c8698da86 Add ID to token 2016-12-27 00:28:05 +01:00
f36fe1b1c0 Use id to load budgets 2016-12-27 00:27:52 +01:00
72fbec1063 Implement BudgetsForUser 2016-12-25 20:20:58 +01:00
57a69c448d Add userbudget 2016-12-20 21:17:17 +01:00
07d5816251 Implement budgetservice.Budget(id) 2016-12-20 20:52:48 +01:00
672376a55c Implement all services in type Repository 2016-12-20 20:46:25 +01:00
04af4bce7e Add budget 2016-12-20 20:20:52 +01:00
ca1c2ed778 Add dashboard 2016-12-20 20:05:15 +01:00
135b1b8e8d Use form-groups in register as well 2016-12-20 19:57:20 +01:00
9a206250e8 Add placeholders 2016-12-20 19:44:56 +01:00
aba366f211 Use form groups 2016-12-20 19:44:56 +01:00
2b2f508998 Remove static index.html 2016-12-20 19:23:18 +01:00
7c197ff49d Use string instead of ID type 2016-12-20 16:52:26 +01:00
83c36f00bf Use whole array as hash 2016-12-20 16:40:33 +01:00
6a8818dab6 Cast to budgeteer.ID 2016-12-20 16:39:09 +01:00
97ca85a0db Field is called email not username 2016-12-20 16:38:48 +01:00
518a0c2df9 Create ulid generator 2016-12-20 16:21:12 +01:00
4b7a70d03d Fix width with passwords-match-notice 2016-12-20 16:20:29 +01:00
a71afaf6b9 Implement registration 2016-12-20 15:26:31 +01:00
b9d428d386 Implement bcrypt 2016-12-20 15:15:33 +01:00
cf03726643 Use spaces 2016-12-20 14:52:01 +01:00
88eb29f855 Use span instead of div 2016-12-20 14:49:48 +01:00
3406ce58cf Flash notice on submit if passwords don't match 2016-12-20 14:34:29 +01:00
9db0ea1870 Extract js Method checkPasswordMatch 2016-12-20 14:34:00 +01:00
6b730d5b33 Check if passwords match with js 2016-12-20 13:55:05 +01:00
2c55fbc431 Add db-init script for users-table 2016-12-20 13:43:45 +01:00
b5114beacf Accept user in CreateToken 2016-12-20 13:43:15 +01:00
e955638510 Actually compare to users in database 2016-12-20 13:36:30 +01:00
7b235f83ad Add registration 2016-12-20 13:34:34 +01:00
cb6558a8ce Implement CreateUser & use ID 2016-12-20 11:45:34 +01:00
f66e544d43 Add custom ID types 2016-12-20 11:42:57 +01:00
dafc477fe8 Add package ulid 2016-12-20 11:40:12 +01:00
2de8e46bf3 Read config and connect to db 2016-12-20 10:13:18 +01:00
528f329657 Add example config 2016-12-20 10:13:04 +01:00
65322bc182 Add config 2016-12-20 10:08:24 +01:00
c3664ef3e0 Actually use pg 2016-12-20 09:46:52 +01:00
0f1bd4cac3 Reformat http 2016-12-20 09:46:39 +01:00
308ff98830 Finish cleaning dependencies 2016-12-19 23:23:52 +01:00
02d6f3bd79 Add token.go 2016-12-19 22:48:36 +01:00
1592e4e8cf Move login.go to jwt subpackage 2016-12-19 22:48:17 +01:00
8231b3d176 Move login-code to http 2016-12-19 22:47:45 +01:00