Skip to content

Commit b0915a5

Browse files
committed
small refactors
1 parent 93c60a3 commit b0915a5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

web-examples/src/main/java/io/vertx/example/web/oauth2/Server.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package io.vertx.example.web.oauth2;
22

33
import io.vertx.core.AbstractVerticle;
4-
import io.vertx.core.json.JsonArray;
54
import io.vertx.core.json.JsonObject;
65
import io.vertx.example.util.Runner;
76
import io.vertx.ext.auth.oauth2.AccessToken;
@@ -24,8 +23,8 @@ public static void main(String[] args) {
2423

2524
// you should never store these in code,
2625
// these are your github application credentials
27-
private static final String CLIENT_ID = "xxxxxxxxxxxxxxxxxxxx";
28-
private static final String CLIENT_SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
26+
private static final String CLIENT_ID = "57cdaa1952a3f4ee3df8";
27+
private static final String CLIENT_SECRET = "3155eafd33fc947e0fe9f44127055ce1fe876704";
2928

3029
// In order to use a template we first need to create an engine
3130
private final HandlebarsTemplateEngine engine = HandlebarsTemplateEngine.create();

web-examples/src/main/java/io/vertx/example/web/oauth2/views/advanced.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{#if userInfo.private_emails}}
1313
With your permission, we were also able to dig up your private email addresses:
1414
{{#each userInfo.private_emails}}
15-
{{email}},
15+
{{email}}{{#unless @last}},{{/unless}}
1616
{{/each}}
1717
{{else}}
1818
Also, you're a bit secretive about your private email addresses.

0 commit comments

Comments
 (0)