sorry it isn't on the lev readme

There are a few examples in openstax/exercises

On Feb 28, 2014, at 2:23 AM, Karen Chan <notifications@github.com> wrote:

> In app/handlers/reset_password.rb:
> 
> > +  include Lev::Handler
> > +
> > +  uses_routine ResetPassword
> > +
> > +protected
> > +
> > +  def authorized?
> > +    true
> > +  end
> > +
> > +  def handle
> > +    identity = Identity.where(reset_code: params[:code]).first
> > +    fatal_error(code: 'Reset password link is invalid', offending_inputs: [:code]) if identity.nil? or params[:code].nil?
> > +    if request.post?
> > +      run(SetPassword, identity,
> > +          params[:reset_password].try(:[], :password),
> Thanks for telling me about paramify, I'll try it out.
> 
> —
> Reply to this email directly or view it on GitHub.
>