Commit Graph
95 Commits
Author SHA1 Message Date
jacob1123 e8574ebd0a Use TemplateData for dashboard 2016-12-27 00:47:47 +01:00
jacob1123 1ee88466f2 Use Token field instead of GetToken 2016-12-27 00:47:36 +01:00
jacob1123 e525fdc928 Rename to Service
Add ModelService interface to merge all Services
2016-12-27 00:47:10 +01:00
jacob1123 5b9b2e02a0 Return pointers 2016-12-27 00:45:30 +01:00
jacob1123 30d9da1c81 Show budgets on dashboard 2016-12-27 00:29:01 +01:00
jacob1123 5754b97e4d Add data 2016-12-27 00:28:52 +01:00
jacob1123 0037cf045c Fix Budgets relation 2016-12-27 00:28:31 +01:00
jacob1123 649b272caf Use AbortWithError 2016-12-27 00:28:19 +01:00
jacob1123 7c8698da86 Add ID to token 2016-12-27 00:28:05 +01:00
jacob1123 f36fe1b1c0 Use id to load budgets 2016-12-27 00:27:52 +01:00
jacob1123 72fbec1063 Implement BudgetsForUser 2016-12-25 20:20:58 +01:00
jacob1123 57a69c448d Add userbudget 2016-12-20 21:17:17 +01:00
jacob1123 07d5816251 Implement budgetservice.Budget(id) 2016-12-20 20:52:48 +01:00
jacob1123 672376a55c Implement all services in type Repository 2016-12-20 20:46:25 +01:00
jacob1123 04af4bce7e Add budget 2016-12-20 20:20:52 +01:00
jacob1123 ca1c2ed778 Add dashboard 2016-12-20 20:05:15 +01:00
jacob1123 135b1b8e8d Use form-groups in register as well 2016-12-20 19:57:20 +01:00
jacob1123 9a206250e8 Add placeholders 2016-12-20 19:44:56 +01:00
jacob1123 aba366f211 Use form groups 2016-12-20 19:44:56 +01:00
jacob1123 2b2f508998 Remove static index.html 2016-12-20 19:23:18 +01:00
jacob1123 7c197ff49d Use string instead of ID type 2016-12-20 16:52:26 +01:00
jacob1123 83c36f00bf Use whole array as hash 2016-12-20 16:40:33 +01:00
jacob1123 6a8818dab6 Cast to budgeteer.ID 2016-12-20 16:39:09 +01:00
jacob1123 97ca85a0db Field is called email not username 2016-12-20 16:38:48 +01:00
jacob1123 518a0c2df9 Create ulid generator 2016-12-20 16:21:12 +01:00
jacob1123 4b7a70d03d Fix width with passwords-match-notice 2016-12-20 16:20:29 +01:00
jacob1123 a71afaf6b9 Implement registration 2016-12-20 15:26:31 +01:00
jacob1123 b9d428d386 Implement bcrypt 2016-12-20 15:15:33 +01:00
jacob1123 cf03726643 Use spaces 2016-12-20 14:52:01 +01:00
jacob1123 88eb29f855 Use span instead of div 2016-12-20 14:49:48 +01:00
jacob1123 3406ce58cf Flash notice on submit if passwords don't match 2016-12-20 14:34:29 +01:00
jacob1123 9db0ea1870 Extract js Method checkPasswordMatch 2016-12-20 14:34:00 +01:00
jacob1123 6b730d5b33 Check if passwords match with js 2016-12-20 13:55:05 +01:00
jacob1123 2c55fbc431 Add db-init script for users-table 2016-12-20 13:43:45 +01:00
jacob1123 b5114beacf Accept user in CreateToken 2016-12-20 13:43:15 +01:00
jacob1123 e955638510 Actually compare to users in database 2016-12-20 13:36:30 +01:00
jacob1123 7b235f83ad Add registration 2016-12-20 13:34:34 +01:00
jacob1123 cb6558a8ce Implement CreateUser & use ID 2016-12-20 11:45:34 +01:00
jacob1123 f66e544d43 Add custom ID types 2016-12-20 11:42:57 +01:00
jacob1123 dafc477fe8 Add package ulid 2016-12-20 11:40:12 +01:00
jacob1123 2de8e46bf3 Read config and connect to db 2016-12-20 10:13:18 +01:00
jacob1123 528f329657 Add example config 2016-12-20 10:13:04 +01:00
jacob1123 65322bc182 Add config 2016-12-20 10:08:24 +01:00
jacob1123 c3664ef3e0 Actually use pg 2016-12-20 09:46:52 +01:00
jacob1123 0f1bd4cac3 Reformat http 2016-12-20 09:46:39 +01:00
jacob1123 308ff98830 Finish cleaning dependencies 2016-12-19 23:23:52 +01:00
jacob1123 02d6f3bd79 Add token.go 2016-12-19 22:48:36 +01:00
jacob1123 1592e4e8cf Move login.go to jwt subpackage 2016-12-19 22:48:17 +01:00
jacob1123 8231b3d176 Move login-code to http 2016-12-19 22:47:45 +01:00
jacob1123 227028f99d Try to extract http 2016-12-19 18:56:24 +01:00
jacob1123 0cac7a69aa Fix directory name 'postgres' 2016-12-19 18:56:09 +01:00
jacob1123 099ae5fe8a Add name to User 2016-12-19 18:46:35 +01:00
jacob1123 c0d6ae1157 Add postgres package 2016-12-19 18:43:24 +01:00
jacob1123 f759600db1 Move login & main to cmd/budgeteer 2016-12-19 18:43:07 +01:00
jacob1123 28b26c088e Fix login without fixed size 2016-12-07 17:19:38 +01:00
jacob1123 f4e227957b Add index 2016-12-07 17:19:11 +01:00
jacob1123 39141ab2e6 Rename template to login 2016-12-07 17:02:40 +01:00
jacob1123 f74b7ab078 Remove .html 2016-12-07 16:59:04 +01:00
jacob1123 ed0b939a75 Extract head to own template 2016-12-07 16:43:46 +01:00
jacob1123 1fa6c43df1 Extract css to main.css 2016-12-03 21:13:03 +01:00
jacob1123 147219e66d Center form and improve header 2016-12-03 21:11:45 +01:00
jacob1123 7a5bc35cc3 Add Header 2016-12-03 21:09:33 +01:00
jacob1123 e4755bcad8 Add DOCTYPE & viewport 2016-12-03 21:07:59 +01:00
jacob1123 36b066c687 Implement logout 2016-12-03 20:30:40 +01:00
jacob1123 304b954b51 Ignore swap files 2016-12-03 20:16:32 +01:00
jacob1123 bb6fd11a92 Include bootstrap css 2016-12-03 20:15:22 +01:00
jacob1123 637efda810 Actuall serve static files 2016-12-03 20:14:46 +01:00
jacob1123 825bf7be04 Add bootstrap 2016-12-03 20:13:47 +01:00
jacob1123 0adbb9087e Remove c&p comments 2016-11-25 18:55:11 +01:00
jacob1123 c8f221b310 Add .vscode to gitignore 2016-11-25 17:15:24 +01:00
jacob1123 3f8b88ecd4 Make invalid credentials notice red 2016-11-25 17:13:43 +01:00
jacob1123 ba7cea9965 Remove target param from form-action 2016-11-25 17:11:12 +01:00
jacob1123 db18731e43 Enable static files 2016-11-25 17:11:02 +01:00
jacob1123 a122e5db0c Use AJAX for login 2016-11-25 17:06:10 +01:00
jacob1123 b2ed65788e Get Name from Claims 2016-11-24 12:08:52 +01:00
jacob1123 bd1b3416b4 Extract loginSuccess to login.go 2016-11-23 23:18:13 +01:00
jacob1123 aa055e944e Extract login functions to login.go 2016-11-23 23:10:32 +01:00
jacob1123 7c104b6fc2 Verify Token 2016-11-23 23:03:33 +01:00
jacob1123 f62ba4a20e Fix claims 2016-11-23 22:38:16 +01:00
jacob1123 038976ca4d Make Cookie non-secure while in dev 2016-11-23 22:29:13 +01:00
jacob1123 b5c81aa956 Use httpOnly Cookie 2016-11-23 22:10:29 +01:00
jacob1123 fb97208785 Move login.html outside of api 2016-11-23 22:08:13 +01:00
jacob1123 73950eb6da Move HTML to template 2016-11-23 22:07:53 +01:00
jacob1123 d8860aabc8 Add login Website 2016-11-23 21:51:55 +01:00
jacob1123 c5d8e858a4 Convert to GIN 2016-11-23 21:51:43 +01:00
jacob1123 48eea7fb37 Add Cookie on login 2016-06-14 23:08:40 +02:00
jacob1123 576084e1de Use Form-action 2016-06-14 21:21:10 +02:00
jacob1123 f1a89266c2 Add login via API 2016-06-14 21:00:53 +02:00
jacob1123 c4c38eff16 Add title and Home-Link 2016-06-14 21:00:24 +02:00
jacob1123 d742b88bdb Serve static files in / and api in /api 2016-06-14 20:35:52 +02:00
jacob1123 f83026ac45 Add Bootstrap 2016-06-14 20:24:48 +02:00
jacob1123 73d7424eed Implement hard-coded login 2016-06-13 22:42:09 +02:00
jacob1123 a5f0ea074c Add Hello World 2016-06-13 22:17:24 +02:00
jacob1123 2580456d0f Add Sublime Project 2016-06-13 22:14:14 +02:00
jacob1123 c9ded44100 Add short description to README 2016-06-13 22:13:46 +02:00