mirror of
https://github.com/volatiletech/authboss.git
synced 2025-02-03 13:21:22 +02:00
2b043b78fa
- Add email layouts
12 lines
312 B
Go
12 lines
312 B
Go
package flashutil
|
|
|
|
import "gopkg.in/authboss.v0"
|
|
|
|
// Pull is a convenience func to retreive then delete a flash message. Any ok
|
|
// checks are ignored as they don't alter the intended use.
|
|
func Pull(storer authboss.ClientStorer, key string) string {
|
|
value, _ := storer.Get(key)
|
|
storer.Del(key)
|
|
return value
|
|
}
|