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
1c412b35
Commit
1c412b35
authored
Jul 29, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staging' into 'master'
Staging See merge request
!161
parents
8ad52371
8bccdd6e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
AccountServiceImpl.java
...owserbackend/account/service/impl/AccountServiceImpl.java
+1
-1
OAuth2AuthorizationConfig.java
...browserbackend/auth/config/OAuth2AuthorizationConfig.java
+2
-4
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 @
1c412b35
...
@@ -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. 使用手机注册就送 1
2
元体验金
// 6. 使用手机注册就送 1
6
元体验金
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
"167"
);
list
.
add
(
"167"
);
list
.
add
(
"171"
);
list
.
add
(
"171"
);
...
...
src/main/java/com/edgec/browserbackend/auth/config/OAuth2AuthorizationConfig.java
View file @
1c412b35
...
@@ -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
...
@@ -52,8 +50,8 @@ public class OAuth2AuthorizationConfig extends AuthorizationServerConfigurerAdap
...
@@ -52,8 +50,8 @@ public class OAuth2AuthorizationConfig extends AuthorizationServerConfigurerAdap
.
withClient
(
"browser"
)
.
withClient
(
"browser"
)
.
authorizedGrantTypes
(
"refresh_token"
,
"password"
)
.
authorizedGrantTypes
(
"refresh_token"
,
"password"
)
.
scopes
(
"browser"
)
.
scopes
(
"browser"
)
.
accessTokenValiditySeconds
(
4320
0
)
.
accessTokenValiditySeconds
(
7
*
24
*
60
*
6
0
)
.
refreshTokenValiditySeconds
(
4320
0
)
.
refreshTokenValiditySeconds
(
30
*
24
*
60
*
6
0
)
.
and
()
.
and
()
.
withClient
(
"cloudam-browser"
)
.
withClient
(
"cloudam-browser"
)
.
secret
(
env
.
getProperty
(
"ACCOUNT_SERVICE_PASSWORD"
))
.
secret
(
env
.
getProperty
(
"ACCOUNT_SERVICE_PASSWORD"
))
...
...
src/main/java/com/edgec/browserbackend/browser/domain/UserCode.java
View file @
1c412b35
...
@@ -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
=
"
UserC
ode"
)
@Document
(
collection
=
"
userc
ode"
)
public
class
UserCode
{
public
class
UserCode
{
@Id
@Id
private
String
username
;
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