backdrop-contrib / bakery

Allows for single sign-on between Backdrop sites on the same domain.
GNU General Public License v2.0
1 stars 3 forks source link

Make subsite registration and login optional #6

Open klonos opened 7 years ago

klonos commented 7 years ago

Respective d.org issue: https://www.drupal.org/node/2659992


PR by @serundeputy https://github.com/backdrop-contrib/bakery/pull/7

serundeputy commented 7 years ago

I started on this. Here is the patch to port from D7. https://gist.github.com/serundeputy/49310f7b51fde4b8d02ad89b342a0824 re: https://github.com/backdrop-ops/forum.backdropcms.org/issues/21

serundeputy commented 7 years ago

@jenlampton this applies the changes from the drupal queue (https://gist.github.com/serundeputy/49310f7b51fde4b8d02ad89b342a0824)

I can not think of a great/easy way to test this. Perhaps apply this patch (https://patch-diff.githubusercontent.com/raw/backdrop-contrib/bakery/pull/7.patch) to a test branch for forum and/or localize and test there.

Unless we have a staging server in which case we could test there.

jenlampton commented 7 years ago

Sorry for the delay guys, and thanks @serundeputy for picking up my slack! Last week was a doozy for me... I launched two new backdrop sites! staging.bollier.org and kvmrx.org (and I have a third on the way) but will get to this as soon as I can.

jenlampton commented 7 years ago

@serundeputy okay, patch applied to forum site.

jenlampton commented 7 years ago

@serundeputy the patch at https://gist.githubusercontent.com/serundeputy/49310f7b51fde4b8d02ad89b342a0824/raw/52165fe3222b2bb31f3e3fa9a3dc7b158ac30265/2659992-no-subsite-registration-login.patch applied to localize.

jenlampton commented 7 years ago

one error when running update.php on the forum site: Notice: Use of undefined constant is_master - assumed 'is_master' in bakery_menu() (line 22 of bakery/bakery.module).

jenlampton commented 7 years ago

Testing on the forum site, here's what I've found with subsite_login set to 1.

When logged OUT of backdropcms.org:

When logged IN to backdropcms.org:

Here's what I've found with subsite_login set to 0: