mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 02:16:25 +02:00
fix(core): configure item name from open_signin to open_signup
This commit is contained in:
@@ -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
|
||||
|
||||
2
config/env/torrents.js
vendored
2
config/env/torrents.js
vendored
@@ -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
|
||||
},
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user