Commit 5c660f3f authored by xuxin's avatar xuxin

修改UserCode表名为全小写

修改 access_token 有效时间供前端测试
parent d715b5ab
......@@ -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("13570690305", com.edgec.browserbackend.common.commons.utils.SmsUtils.SmsTemplateCode.NEWACCOUNT, param);
// 6. 使用手机注册就送 12 元体验金
// 6. 使用手机注册就送 16 元体验金
List<String> list = new ArrayList<>();
list.add("167");
list.add("171");
......
......@@ -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.configurers.AuthorizationServerEndpointsConfigurer;
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
......@@ -52,7 +50,7 @@ public class OAuth2AuthorizationConfig extends AuthorizationServerConfigurerAdap
.withClient("browser")
.authorizedGrantTypes("refresh_token", "password")
.scopes("browser")
.accessTokenValiditySeconds(43200)
.accessTokenValiditySeconds(300)
.refreshTokenValiditySeconds(43200)
.and()
.withClient("cloudam-browser")
......
......@@ -10,7 +10,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
*/
@Data
@AllArgsConstructor
@Document(collection = "UserCode")
@Document(collection = "usercode")
public class UserCode {
@Id
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