Sha256: e7f939e604d628e98eda0dedf143a0659685ba4fe14ad7efd7cb3e972ac6b670
Contents?: true
Size: 641 Bytes
Versions: 9
Compression:
Stored size: 641 Bytes
Contents
# frozen-string-literal: true module Rodauth Logout = Feature.define(:logout) do notice_flash "You have been logged out" view 'logout', 'Logout' additional_form_tags before after button 'Logout' redirect{require_login_redirect} auth_methods :logout route do |r| before_logout_route r.get do logout_view end r.post do transaction do before_logout logout after_logout end set_notice_flash logout_notice_flash redirect logout_redirect end end def logout clear_session end end end
Version data entries
9 entries across 9 versions & 1 rubygems