Hi everyone!
I have a rails 2.3.5 + lipsiadmin 5.1.2 app running on my mac, and i
got something strange here.
Say i have roles "administrator" and "user", when i update a account's
role to another, it just make the account can not login. I put a
flash[:notice] on login page so that i can check if the
authentication failure . It shows that authentication is work fine,
but it just do not run the redirect_back_or_default(backend_path)
right, i try reset session also get the same result, it just stop at
the login page, here is the log:
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Processing Backend::SessionsController#new (for 127.0.0.1 at
2010-04-29 06:23:05) [GET]
Rendering template within layouts/backend
Rendering backend/sessions/new
Completed in 6ms (View: 4, DB: 0) | 200 OK [
http://0.0.0.0/backend/
sessions/new]
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Processing Backend::SessionsController#create (for 127.0.0.1 at
2010-04-29 06:23:11) [POST]
Parameters: {"x"=>"38", "y"=>"6", "authenticity_token"=>"UdFqW/
CDEBv3DdosRs5ip+cCfGZREXmyyWpsIpovlRM=", "password"=>"123456",
"email"=>"
123...@g.com"}
Account Load (0.4ms) SELECT * FROM `accounts` WHERE (email =
'
123...@g.com') LIMIT 1
Account Columns (1.3ms) SHOW FIELDS FROM `accounts`
Redirected to
http://0.0.0.0:3000/backend
Completed in 16ms (DB: 2) | 302 Found [
http://0.0.0.0/backend/
sessions]
------------------------------------------------------------------------------------------------------------------------------------------------------------
So it stop ,but normally it should be few more steps like below:
------------------------------------------------------------------------------------------------------------------------------------------------------------
Processing Backend::BaseController#index (for 127.0.0.1 at 2010-04-29
06:37:45) [GET]
Account Columns (1.5ms) SHOW FIELDS FROM `accounts`
Account Load (0.3ms) SELECT * FROM `accounts` WHERE
(`accounts`.`id` = 1) LIMIT 1
Account Load (0.3ms) SELECT * FROM `accounts` WHERE
(`accounts`.`id` = 1)
CACHE (0.0ms) SELECT * FROM `accounts` WHERE (`accounts`.`id` =
1)
Rendering backend/base/index
Completed in 23ms (View: 3, DB: 2) | 200 OK [
http://0.0.0.0/backend]
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Processing JavascriptsController#locale to js (for 127.0.0.1 at
2010-04-29 06:37:45) [GET]
Rendering javascripts/locale
Completed in 56ms (View: 53, DB: 0) | 200 OK [
http://0.0.0.0/
javascripts/locale.js]
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Processing JavascriptsController#backend to js (for 127.0.0.1 at
2010-04-29 06:37:45) [GET]
Parameters: {"small"=>"0"}
Rendering javascripts/backend
Account Columns (1.4ms) SHOW FIELDS FROM `accounts`
Account Load (0.3ms) SELECT * FROM `accounts` WHERE
(`accounts`.`id` = 1) LIMIT 1
------------------------------------------------------------------------------------------------------------------------------------------------------
If i restart the app, it will runs fine again, but i can't afford to
restart my app every time updated a account's role!
Can any one help me with this situation? Thanks a lot !
--
Hai ricevuto questo messaggio perché sei iscritto al gruppo "Lipsiadmin" di Google Gruppi.
Per postare messaggi in questo gruppo, invia un'email a
lipsi...@googlegroups.com.
Per annullare l'iscrizione a questo gruppo, invia un'email a
lipsiadmin+...@googlegroups.com.
Per ulteriori opzioni, visita il gruppo all'indirizzo
http://groups.google.com/group/lipsiadmin?hl=it.