1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-11-28 08:58:38 +02:00
Commit Graph

286 Commits

Author SHA1 Message Date
Aaron
7366629ab4 Fix auth interruption handling. 2015-02-22 12:47:02 -08:00
Aaron
bab0da8575 Fix lock module. 2015-02-22 12:43:28 -08:00
Aaron
681bfdeac0 Fix up expire module. 2015-02-22 00:25:29 -08:00
Aaron
94f441f3d7 Fix confirm module. 2015-02-22 00:09:52 -08:00
Aaron
1ca6eb1cc0 Change the way callbacks work AGAIN. 2015-02-21 21:03:03 -08:00
Kris Runzer
80e40e7817 Add RenderEmail to internal/render 2015-02-21 11:22:56 -08:00
Kris Runzer
1198466d76 Reworking auth 2015-02-21 11:22:55 -08:00
Aaron
0840d9743c Fix error handling in callbacks. 2015-02-20 23:10:18 -08:00
Aaron
205d1669e2 Add error handling to callbacks. 2015-02-20 23:01:45 -08:00
Aaron
5f96e8dec8 Make an GetErr version of the ClientStorer. 2015-02-20 22:02:55 -08:00
Kris Runzer
06c5e686a1 Merge internal/views into internal/render
- Remove internal/view
- Remove internal/flashutil
2015-02-20 14:21:24 -08:00
Aaron
8b87d9c826 Add many tests.
- Finish up render package, rename some things.
- Add authboss view data/error tests.
2015-02-20 05:08:11 -08:00
Aaron
585f842a5c Get authboss tests passing. 2015-02-20 04:03:22 -08:00
Aaron
13a38828bd Merge should actually work now. 2015-02-19 14:50:14 -08:00
Aaron
6a4feaa2ea Add authboss error types.
- Add error handling at the routing level so that all errors can bubble
  up and be handled and logged there in one place.
- Add Err variants for ClientStorer and Attributes to facilitate
  generating errors for missing type-failing arguments.
- Add better control flow and error handling for callbacks.
2015-02-19 14:46:38 -08:00
Aaron
679798564f Fix test breakages from new saving stuff. 2015-02-18 08:57:50 -08:00
Aaron
9f4cde2934 Clean up save/load user on context.
- Fix #16
2015-02-18 08:45:27 -08:00
Aaron
d050610129 Rename UserXXX to StoreXXX in lock module. 2015-02-16 13:31:26 -08:00
Aaron
dee6a42a68 Finish tests for confirm.
- Rename UserXXX to StoreXXX in confirm/authboss.
2015-02-16 13:27:29 -08:00
Aaron
c74bb311b3 Fix lock test. 2015-02-16 11:32:31 -08:00
Kris Runzer
f7e1ff2c8c Add XSRF to all forms. 2015-02-15 21:39:18 -08:00
Kris Runzer
d0dd19689b Fix confirm module to use global config 2015-02-15 20:35:32 -08:00
Aaron
127ef8ea17 Fix confirm's initial test.
- Add e-mail templates for confirm.
2015-02-15 20:21:39 -08:00
Aaron
a91a7ef162 Finish confirm module (except tests). 2015-02-15 20:21:38 -08:00
Kris Runzer
bab1475b72 Change config to be global. Updated most modules and tests. 2015-02-15 20:07:36 -08:00
Kris Runzer
1aa0da808c Move duplicate testing mocks to internal/mocks
- Add force err ability to internal/mocks
2015-02-11 16:38:09 -08:00
Kris Runzer
db6738cb23 Split giant Recover files 2015-02-11 13:44:36 -08:00
Kris Runzer
c117fe5154 Fix validate to work with new policies/rules 2015-02-10 23:30:46 -08:00
Kris Runzer
dbf726b1e1 Finish recover module reworking 2015-02-10 23:03:02 -08:00
Kris Runzer
57c9282cbd First part of recover module reworking 2015-02-08 23:12:29 -08:00
Aaron
d86fac49ac Add confirm module beginnings.
- Fix some inconsistencies in expire and lock.
- Add bool type to storer.
2015-02-07 04:27:12 -08:00
Kris Runzer
c52f90b0a9 WIP commit 2015-02-05 10:31:32 -08:00
Aaron
8a9736f664 Add ViewData concepts for layout files. 2015-02-01 15:51:01 -08:00
Kris Runzer
2b043b78fa More work on cleaning up recover
- Add email layouts
2015-02-01 14:17:18 -08:00
Kris Runzer
4b1ce859fb Reworking recover module 2015-01-31 22:51:00 -08:00
Aaron
58e2f1f355 Add a method to pick attributes from a context. 2015-01-28 00:32:53 -08:00
Aaron L
c1670a041f Add form value name for xsrf tokens. 2015-01-27 17:34:55 -08:00
Aaron
b3042339d0 Add XSRF support. 2015-01-27 02:11:19 -08:00
Kris Runzer
e660edd428 Safety commit
- Add new validation methods
- Cleaned up interactions with validation
- Add required validation
- Add confirm fields to validation
2015-01-25 23:02:43 -08:00
Aaron
042bdba669 First shot at the expire module. 2015-01-25 18:13:32 -08:00
Aaron
22efa3b740 Make mailer test a bit more inclusive. 2015-01-25 16:55:30 -08:00
Aaron
8ceeec5420 Fixed up e-mailing.
- Fix #13
2015-01-25 15:40:57 -08:00
Aaron
f0552cd8c6 Add lock tests.
- Fix some logic errors in lock module.
- Add some more power to the mocks.
2015-01-24 22:19:22 -08:00
Aaron
65f7fad5fc Second shot at proper validation. 2015-01-24 16:07:41 -08:00
Aaron
fe7b990095 Add beginnings of lock package.
- Adjust configuration for some lock variables and better XML Names.
2015-01-23 16:25:12 -08:00
Aaron
8f6f322c63 Add new internal mocks.
- Update remember to use new mocks.
2015-01-23 16:24:34 -08:00
Aaron
f537664fd9 Cleanup various sad things.
- Export ModuleAttrMeta so the modules can access it.
- Add a couple new events for later use.
- Fix a few compile errors.
- Prefix err constants with Err.
2015-01-23 15:56:24 -08:00
Kris Runzer
b60b667184 Add better validation error support
- Add map function for ErrorList
- Creat new events for recover
2015-01-20 22:41:31 -08:00
Kris Runzer
6c464e8701 Add missing views module files. 2015-01-18 16:00:09 -08:00
Aaron
efc834006a Add proper database/go casing. 2015-01-18 14:35:51 -08:00