From: Dan Brown Date: Fri, 21 Sep 2018 15:14:52 +0000 (+0100) Subject: Merge branch 'feature/autoregistration_social_login' of git://github.com/ibrahimennaf... X-Git-Tag: v0.24.0~1^2~16^2~10 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/7ad8314bd71adef5336ed6482e6933d02805f26a?ds=inline;hp=-c Merge branch 'feature/autoregistration_social_login' of git://github.com/ibrahimennafaa/BookStack into ibrahimennafaa-feature/autoregistration_social_login --- 7ad8314bd71adef5336ed6482e6933d02805f26a diff --combined resources/lang/en/settings.php index 80ab77d19,824301522..7e33c73dd --- a/resources/lang/en/settings.php +++ b/resources/lang/en/settings.php @@@ -32,8 -32,9 +32,8 @@@ return 'app_primary_color' => 'Application primary color', 'app_primary_color_desc' => 'This should be a hex value.
Leave empty to reset to the default color.', 'app_homepage' => 'Application Homepage', - 'app_homepage_desc' => 'Select a page to show on the homepage instead of the default view. Page permissions are ignored for selected pages.', - 'app_homepage_default' => 'Default homepage view chosen', - 'app_homepage_books' => 'Or select the books page as your homepage. This will override any page selected as your homepage.', + 'app_homepage_desc' => 'Select a view to show on the homepage instead of the default view. Page permissions are ignored for selected pages.', + 'app_homepage_select' => 'Select a page', 'app_disable_comments' => 'Disable comments', 'app_disable_comments_desc' => 'Disable comments across all pages in the application. Existing comments are not shown.', @@@ -43,6 -44,8 +43,8 @@@ 'reg_settings' => 'Registration Settings', 'reg_allow' => 'Allow registration?', + 'reg_auto_social_allow' => 'Allow auto social registration?', + 'reg_auto_social_allow_desc' => 'If the social user doesn\'t exist, automatically sign him up. Domain restriction is respected if set. Email is also automatically validated for this kind of social registration.', 'reg_default_role' => 'Default user role after registration', 'reg_confirm_email' => 'Require email confirmation?', 'reg_confirm_email_desc' => 'If domain restriction is used then email confirmation will be required and the below value will be ignored.', @@@ -90,7 -93,6 +92,7 @@@ 'role_manage_settings' => 'Manage app settings', 'role_asset' => 'Asset Permissions', 'role_asset_desc' => 'These permissions control default access to the assets within the system. Permissions on Books, Chapters and Pages will override these permissions.', + 'role_asset_admins' => 'Admins are automatically given access to all content but these options may show or hide UI options.', 'role_all' => 'All', 'role_own' => 'Own', 'role_controlled_by_asset' => 'Controlled by the asset they are uploaded to', @@@ -148,7 -150,7 +150,7 @@@ 'it' => 'Italian', 'ru' => 'Русский', 'zh_CN' => '简体中文', - 'zh_TW' => '繁體中文' + 'zh_TW' => '繁體中文' ] /////////////////////////////////// ]; diff --combined resources/views/settings/index.blade.php index 3c563a61c,bcaf2f4d7..8ad27c5f3 --- a/resources/views/settings/index.blade.php +++ b/resources/views/settings/index.blade.php @@@ -76,22 -76,12 +76,22 @@@ -
+

{{ trans('settings.app_homepage_desc') }}

- @include('components.page-picker', ['name' => 'setting-app-homepage', 'placeholder' => trans('settings.app_homepage_default'), 'value' => setting('app-homepage')]) -

{{ trans('settings.app_homepage_books') }}

- @include('components.toggle-switch', ['name' => 'setting-app-book-homepage', 'value' => setting('app-book-homepage')]) + + + +

+ +
+ @include('components.page-picker', ['name' => 'setting-app-homepage', 'placeholder' => trans('settings.app_homepage_select'), 'value' => setting('app-homepage')]) +
@@@ -136,6 -126,11 +136,11 @@@ @endforeach +
+ +

{{ trans('settings.reg_auto_social_allow_desc') }}

+ @include('components.toggle-switch', ['name' => 'setting-autosocialregistration-confirmation', 'value' => setting('autosocialregistration-confirmation')]) +

{{ trans('settings.reg_confirm_email_desc') }}