Commit 1c412b35 authored by Administrator's avatar Administrator

Merge branch 'staging' into 'master'

Staging

See merge request !161
parents 8ad52371 8bccdd6e
...@@ -466,7 +466,7 @@ public class AccountServiceImpl implements AccountService { ...@@ -466,7 +466,7 @@ public class AccountServiceImpl implements AccountService {
com.edgec.browserbackend.common.commons.utils.SmsUtils.sendNewAccountSms("15919921106", com.edgec.browserbackend.common.commons.utils.SmsUtils.SmsTemplateCode.NEWACCOUNT, param); com.edgec.browserbackend.common.commons.utils.SmsUtils.sendNewAccountSms("15919921106", com.edgec.browserbackend.common.commons.utils.SmsUtils.SmsTemplateCode.NEWACCOUNT, param);
com.edgec.browserbackend.common.commons.utils.SmsUtils.sendNewAccountSms("13570690305", com.edgec.browserbackend.common.commons.utils.SmsUtils.SmsTemplateCode.NEWACCOUNT, param); com.edgec.browserbackend.common.commons.utils.SmsUtils.sendNewAccountSms("13570690305", com.edgec.browserbackend.common.commons.utils.SmsUtils.SmsTemplateCode.NEWACCOUNT, param);
// 6. 使用手机注册就送 12 元体验金 // 6. 使用手机注册就送 16 元体验金
List<String> list = new ArrayList<>(); List<String> list = new ArrayList<>();
list.add("167"); list.add("167");
list.add("171"); list.add("171");
......
...@@ -14,8 +14,6 @@ import org.springframework.security.oauth2.config.annotation.web.configuration.A ...@@ -14,8 +14,6 @@ import org.springframework.security.oauth2.config.annotation.web.configuration.A
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer; import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer; import org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer;
import org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer; import org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;
/** /**
* @author cdov * @author cdov
...@@ -49,16 +47,16 @@ public class OAuth2AuthorizationConfig extends AuthorizationServerConfigurerAdap ...@@ -49,16 +47,16 @@ public class OAuth2AuthorizationConfig extends AuthorizationServerConfigurerAdap
// @formatter:off // @formatter:off
clients.inMemory() clients.inMemory()
.withClient("browser") .withClient("browser")
.authorizedGrantTypes("refresh_token", "password") .authorizedGrantTypes("refresh_token", "password")
.scopes("browser") .scopes("browser")
.accessTokenValiditySeconds(43200) .accessTokenValiditySeconds(7 * 24 * 60 * 60)
.refreshTokenValiditySeconds(43200) .refreshTokenValiditySeconds(30 * 24 * 60 * 60)
.and() .and()
.withClient("cloudam-browser") .withClient("cloudam-browser")
.secret(env.getProperty("ACCOUNT_SERVICE_PASSWORD")) .secret(env.getProperty("ACCOUNT_SERVICE_PASSWORD"))
.authorizedGrantTypes("client_credentials", "refresh_token") .authorizedGrantTypes("client_credentials", "refresh_token")
.scopes("server"); .scopes("server");
// @formatter:on // @formatter:on
} }
......
...@@ -10,7 +10,7 @@ import org.springframework.data.mongodb.core.mapping.Document; ...@@ -10,7 +10,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
*/ */
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@Document(collection = "UserCode") @Document(collection = "usercode")
public class UserCode { public class UserCode {
@Id @Id
private String username; private String username;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment