mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-21 22:44:23 -04:00
allow registration and signin/out on the API
This commit is contained in:
1 parent
fe137a11bb
commit
c6413afa67
2 files changed
+3
No files matched your search
@@ -1,4 +1,5 @@
|
||||
class RegistrationsController < Devise::RegistrationsController
|
||||
respond_to :json
|
||||
|
||||
def edit
|
||||
@twitter_auth = current_member.auth('twitter')
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
class SessionsController < Devise::SessionsController
|
||||
respond_to :json
|
||||
|
||||
def create
|
||||
super do |resource|
|
||||
if Crop.pending_approval.present? && current_member.has_role?(:crop_wrangler)
|
||||
|
||||
Reference in new issue
Block a user