Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
browser-backend
Commits
5c660f3f
Commit
5c660f3f
authored
Jul 29, 2020
by
xuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改UserCode表名为全小写
修改 access_token 有效时间供前端测试
parent
d715b5ab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
AccountServiceImpl.java
...owserbackend/account/service/impl/AccountServiceImpl.java
+1
-1
OAuth2AuthorizationConfig.java
...browserbackend/auth/config/OAuth2AuthorizationConfig.java
+1
-3
UserCode.java
...ava/com/edgec/browserbackend/browser/domain/UserCode.java
+1
-1
No files found.
src/main/java/com/edgec/browserbackend/account/service/impl/AccountServiceImpl.java
View file @
5c660f3f
...
...
@@ -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. 使用手机注册就送 1
2
元体验金
// 6. 使用手机注册就送 1
6
元体验金
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
"167"
);
list
.
add
(
"171"
);
...
...
src/main/java/com/edgec/browserbackend/auth/config/OAuth2AuthorizationConfig.java
View file @
5c660f3f
...
...
@@ -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
(
432
00
)
.
accessTokenValiditySeconds
(
3
00
)
.
refreshTokenValiditySeconds
(
43200
)
.
and
()
.
withClient
(
"cloudam-browser"
)
...
...
src/main/java/com/edgec/browserbackend/browser/domain/UserCode.java
View file @
5c660f3f
...
...
@@ -10,7 +10,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
*/
@Data
@AllArgsConstructor
@Document
(
collection
=
"
UserC
ode"
)
@Document
(
collection
=
"
userc
ode"
)
public
class
UserCode
{
@Id
private
String
username
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment