fix(core): configure item name from open_signin to open_signup

This commit is contained in:
OldHawk
2017-08-16 16:16:44 +08:00
parent be62816ffc
commit e8e446df7c
3 changed files with 5 additions and 5 deletions

View File

@@ -243,7 +243,7 @@ And you can make a list page to tell users witch clients are unpopular.
```javascript
sign: {
open_signin: true,
open_signup: true,
allow_social_sign: true
},
```
@@ -255,7 +255,7 @@ And you can make a list page to tell users witch clients are unpopular.
},
```
If your site do not accept user free register, please set `open_signin` to `false`, then user only can register through friend invitation or system(admin/oper) invitation.
If your site do not accept user free register, please set `open_signup` to `false`, then user only can register through friend invitation or system(admin/oper) invitation.
if you set `open_invite` to `true`, the normal user can invite friends to join, if `false` only oper/admin can invite users.
```javascript

View File

@@ -39,7 +39,7 @@ module.exports = {
encoding: 'UTF-8'
},
sign: {
open_signin: true,
open_signup: true,
allow_social_sign: false,
show_demo_sign_message: true
},

View File

@@ -1,9 +1,9 @@
<div ng-init="vm.verifyToken();">
<div class="margin-top-50 padding-top-20" ng-if="!vm.signConfig.open_signin && !vm.validToken">
<div class="margin-top-50 padding-top-20" ng-if="!vm.signConfig.open_signup && !vm.validToken">
<div class="col-sm-10 col-sm-offset-1" marked src="'/modules/users/client/templates/sign-in-closed-message-'+vm.lang+'.md'" compile="true">
</div>
</div>
<div ng-if="vm.signConfig.open_signin || vm.validToken">
<div ng-if="vm.signConfig.open_signup || vm.validToken">
<legend class="col-sm-10 col-sm-offset-1 small-legend margin-top-40">{{ 'SIGN.SIGN_UP' | translate}}</legend>
<div class="col-sm-8 col-sm-offset-2">