Commit Graph

3562 Commits

Author SHA1 Message Date
patrick brisbin
21cd47cc98
Add envClientSessionBackend, ENV-based session key
This can be useful if:

1. You can't rely on a persistent file system (e.g. Heroku)
2. Your application is open source (e.g. you can't commit the key)

By keeping a consistent value in the environment variable, your users will
have consistent sessions without relying on the file system.

Usage:

    makeSessionBackend _ = fmap Just $ envClientSessionBackend 120 "SESSION_KEY"
2014-11-25 11:15:13 -05:00
Michael Snoyman
4ee1eb17cd Generalize a type signature a bit 2014-11-25 12:03:54 +02:00
Michael Snoyman
a65349612e Support time 1.5 2014-11-25 07:18:11 +02:00
Michael Snoyman
c9d934b920 Merge pull request #875 from MaxGabriel/documentFields
Document Fields.hs
2014-11-25 06:58:40 +02:00
Maximilian Tagher
8e025c8226 Further improvements 2014-11-24 23:25:39 -05:00
Maximilian Tagher
af63a60c69 More stuff 2014-11-24 19:58:36 -05:00
Maximilian Tagher
07090ccb7e Document Fields.hs WIP 2014-11-24 14:11:25 -05:00
Greg Weber
c284e1f8b0 Merge pull request #865 from lambdacms/form-i18n-nl
Adds dutch form translations
2014-11-24 10:05:15 -08:00
Michael Snoyman
3679e67927 Version bump 2014-11-24 07:51:51 +02:00
Michael Snoyman
62a037f65f Doc update 2014-11-24 07:50:51 +02:00
Michael Snoyman
4b1966473e Disambiguate a name 2014-11-23 22:40:42 +02:00
Michael Snoyman
846033b176 Fix some haddocks 2014-11-23 18:54:50 +02:00
Michael Snoyman
5622e96725 README.md 2014-11-23 12:18:41 +02:00
Michael Snoyman
f8b9a702b8 Add missing import 2014-11-23 12:13:25 +02:00
Michael Snoyman
0af76fa97b Only update expires time once per hour 2014-11-23 12:10:22 +02:00
Felipe Lessa
d6e5469179 Merge pull request #873 from MaxGabriel/documentBootstrap3
Document Yesod.Form.Bootstrap3
2014-11-23 00:33:21 -02:00
Maximilian Tagher
2d31b3155d Improves code formatting
* Fixes bug where @<button>@ was being treated as a Haskell function reference
* Uses '<*' instead of @<*@, since <* is a Haskell function (though this doesn't appear to make the link work)
2014-11-22 17:23:12 -08:00
Maximilian Tagher
f4e8ac9496 Fix usages of bootstrapSubmit 2014-11-22 17:04:48 -08:00
Maximilian Tagher
f84e9703ed Revision 1 of Bootstrap 3 documentation 2014-11-22 16:27:23 -08:00
Michael Snoyman
6c693d8793 Merge pull request #872 from DaveCTurner/master
`neverExpires` sets 'Expires' header to be a year from now.
2014-11-22 17:50:52 +02:00
Maximilian Tagher
5038bea627 Document Yesod.Form.Bootstrap3 2014-11-21 20:17:55 -08:00
David Turner
42f098ff64 neverExpires sets 'Expires' header to be a year from now. 2014-11-21 17:40:32 +00:00
Michael Snoyman
5d771e49bb Minor indentation cleanup 2014-11-21 08:22:17 +02:00
Michael Snoyman
213dcbd985 Fix some warnings 2014-11-21 08:21:15 +02:00
Michael Snoyman
11ae185c83 Switch from Monoid to Semigroup 2014-11-21 08:20:06 +02:00
Michael Snoyman
65baf35d0c Make EnvUsage more extensible 2014-11-20 17:11:41 +02:00
Michael Snoyman
5a4ebf394d More EnvUsage constructors 2014-11-20 09:48:22 +02:00
Michael Snoyman
a0836cf955 Version bump 2014-11-20 02:18:44 +02:00
Michael Snoyman
7fcddb6ee3 Provide Example instance for YesodExample 2014-11-20 02:14:06 +02:00
Michael Snoyman
79db398a54 EnvUsage for better control 2014-11-20 01:05:17 +02:00
Michael Snoyman
35511d2466 Nicer _env: syntax (thanks @gregwebs) 2014-11-20 00:53:29 +02:00
Michael Snoyman
e896322493 Merge pull request #871 from lambdacms/auth-i18n-nl
Dutch authentication translation messages
2014-11-20 00:32:27 +02:00
Mats Rietdijk
0678281352 Adds missing dutch translation and improved another translation 2014-11-19 23:02:35 +01:00
Mats Rietdijk
31fb28850c Adds dutch translations to yesod-auth 2014-11-19 22:47:32 +01:00
Michael Snoyman
ff9e2553ed Add makeYesodLogger 2014-11-19 22:46:06 +02:00
Michael Snoyman
bb48e1cbfc Add more helpers for scaffolding 2014-11-19 22:39:06 +02:00
Michael Snoyman
86ad70da6a Make staticRoutes more resilient to missing imports 2014-11-19 21:41:46 +02:00
Michael Snoyman
fb42a6d4bb Allow devel.hs in subdirs 2014-11-19 21:11:49 +02:00
Michael Snoyman
d7bf7a1215 Yesod.Default.Config2 2014-11-19 21:08:43 +02:00
Michael Snoyman
b15ce6b1ea Version bump 2014-11-19 11:10:45 +02:00
Michael Snoyman
9a4348a0e3 Improve etag supported fpco/stackage-server#29 #868 #869 2014-11-19 11:03:55 +02:00
Michael Snoyman
ee3a3cc806 Merge pull request #867 from gsingh93/patch-1
Removed duplicate names from .gitignore
2014-11-17 17:52:47 +02:00
Gulshan Singh
f3b5edcac6 Removed duplicate names from .gitignore 2014-11-17 10:45:49 -05:00
Michael Snoyman
6568e39383 Version bump 2014-11-17 10:06:43 +02:00
Michael Snoyman
a689b0b268 Scaffolding update 2014-11-17 09:58:13 +02:00
Michael Snoyman
b38abdba0f notModified and setEtag 2014-11-15 20:31:27 +02:00
Michael Snoyman
d1815857df Version bump 2014-11-13 23:38:33 +02:00
Michael Snoyman
c0f0c13352 Disable tests and benchmarks for yesod devel #864 2014-11-13 23:36:03 +02:00
Greg Weber
f90397ad3d Merge pull request #863 from sol/fix-warnings
yesod-test: Fix deprecation warnings
2014-11-11 07:38:59 -08:00
Rutger
76e19207cc Adds dutch form translations 2014-11-11 16:12:26 +01:00