3

我設置了omniauth,密碼完全如下所示: https://github.com/namick/omniauth-passwordomniauth密碼給invalid_credentials錯誤

我,不過,每次我試圖登錄時獲得一個invalid_credentials錯誤現在,在沒有用戶我。數據庫,所以它應該創造它們的權利?我有點困惑,註冊適合這個。

問題是我的控制器甚至沒有被調用。這裏是日誌。

(password) Callback phase initiated. 
(password) Authentication failure! invalid_credentials encountered. 

Started POST "/auth/password/callback" for 127.0.0.1 at 2012-12-05 02:34:05 -0800 
    User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '[email protected]' LIMIT 1 


Started GET "/auth/failure?message=invalid_credentials&strategy=password" for 127.0.0.1 at 2012-12-05 02:34:05 -0800 
Processing by SessionsController#failure as HTML 
    Parameters: {"message"=>"invalid_credentials", "strategy"=>"password"} 
    Rendered text template (0.0ms) 
Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.0ms) 

任何幫助表示讚賞!

回答