Skip to content

Fix how SQLAuthLogic and SQLRestAuth fetch their user model class.#226

Merged
mitfik merged 4 commits intorubycas:masterfrom
davexunit:issue-225
Sep 19, 2014
Merged

Fix how SQLAuthLogic and SQLRestAuth fetch their user model class.#226
mitfik merged 4 commits intorubycas:masterfrom
davexunit:issue-225

Conversation

@davexunit
Copy link
Contributor

I have not tested this because I'm about to get on a bus, but I believe this patch will fix issue #225 or at least approximate the correct patch. The class method user_model has been replaced with user_models, which is a hash that keys user model classes by an authenticator's auth_index. The base SQL authenticator has a method called user_model that will fetch the correct user model class.

Could someone try it out?

@davexunit
Copy link
Contributor Author

Additionally, if this fix works, I think it should be applied to the encrypted SQL authenticator. I don't think the other patch #224 does the right thing, exactly.

mitfik pushed a commit that referenced this pull request Sep 19, 2014
Fix how SQLAuthLogic and SQLRestAuth fetch their user model class.
@mitfik mitfik merged commit 23e3852 into rubycas:master Sep 19, 2014
@mitfik
Copy link

mitfik commented Sep 19, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants