Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

heliohead/sinatra_simple_login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple login

This is a simple exemple for login in sinatra using warden, bcrypt and block user if have more than 5 failures attempts.

Default user was configured for email: [email protected] and password: 123

How to run

$ bundle
$ rackup

To add new user

$ bundle console
$ require './model'
$ User.create!(email: '[email protected]', password: 'test')

To unlock user

$ bundle console
$ require './model'
$ u = User.first(:email => '[email protected]').update(:blocked_user => false)

About

Simple exemple for login using sinatra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages