sumeko/phalcon-oauth2-server — pull request #6 by JordiAndujar (2014-12-08 10:09:40+00:00)
Title: Incorrect SQL parameter names in validateAuthCode

When executing validateAuthCode function, an "SQLSTATE[HY093]: Invalid parameter number: parameter was not defined" exception occurs. Parameters :redirectUri and :authCode are not being matched properly.

I propose renaming 'redirect_uri' to 'redirectUri', and 'auth_code' to 'authCode', so parameters will be matching correctly.