ruby - session + devise authentication -



ruby - session + devise authentication -

i want authentication ,many people login particular username , password @ same time , not , user logs in username = sammy , password = sammy123, user b cannot login same username = sammy and in 1 session password = sammy123 while still logged application...,i using ruby 1.8.7 , devise gem authentication, rails 2

1.add column(flag) in table mdl_user store 'false' value when user create new business relationship .

2.make function take 3 value table name,flag field , username(which user enter) .this function homecoming value of flag field (true or false) .this function phone call if user exist in database.

2.1 if 'false' returned allow login user , insert value flag field 'true'. 2.2 if 'true'retuned not allow login , print message below username , password field "this user logged".do not insert value in database.

2.3 when sign out user insert flag field value 'flase'.

3.user allow login when flag field value 'false'.

ruby ruby-on-rails-2

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -