80 Commits

Author SHA1 Message Date
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
227028f99d Try to extract http 2016-12-19 18:56:24 +01:00
0cac7a69aa Fix directory name 'postgres' 2016-12-19 18:56:09 +01:00
099ae5fe8a Add name to User 2016-12-19 18:46:35 +01:00
c0d6ae1157 Add postgres package 2016-12-19 18:43:24 +01:00
f759600db1 Move login & main to cmd/budgeteer 2016-12-19 18:43:07 +01:00
28b26c088e Fix login without fixed size 2016-12-07 17:19:38 +01:00
f4e227957b Add index 2016-12-07 17:19:11 +01:00
39141ab2e6 Rename template to login 2016-12-07 17:02:40 +01:00
f74b7ab078 Remove .html 2016-12-07 16:59:04 +01:00
ed0b939a75 Extract head to own template 2016-12-07 16:43:46 +01:00
1fa6c43df1 Extract css to main.css 2016-12-03 21:13:03 +01:00
147219e66d Center form and improve header 2016-12-03 21:11:45 +01:00
7a5bc35cc3 Add Header 2016-12-03 21:09:33 +01:00
e4755bcad8 Add DOCTYPE & viewport 2016-12-03 21:07:59 +01:00
36b066c687 Implement logout 2016-12-03 20:30:40 +01:00
304b954b51 Ignore swap files 2016-12-03 20:16:32 +01:00
bb6fd11a92 Include bootstrap css 2016-12-03 20:15:22 +01:00