-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #113: Use same account for Google login and e-mail signup.
- Loading branch information
Showing
9 changed files
with
125 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
phoneblock/src/main/java/de/haumacher/phoneblock/db/db-migration-03.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ALTER TABLE USERS ADD GOOGLEID CHARACTER VARYING(64); | ||
|
||
UPDATE USERS SET GOOGLEID = EXTID WHERE CLIENTNAME = 'Google2Client'; | ||
|
||
ALTER TABLE USERS ALTER COLUMN EXTID VARCHAR_IGNORECASE(64) NULL; | ||
ALTER TABLE USERS ALTER COLUMN CLIENTNAME VARCHAR_IGNORECASE(64) NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ public void tearDown() throws Exception { | |
|
||
@Test | ||
void testAuthToken() { | ||
_db.createUser("test", "test1", "user1", "User 1"); | ||
_db.createUser("user1", "User 1"); | ||
|
||
long time = 1000; | ||
final long createTime = time; | ||
|
@@ -264,8 +264,8 @@ void testDuplicateAdd() { | |
|
||
@Test | ||
void testUserManagement() throws IOException { | ||
_db.addUser("none", "1", "[email protected]", "Mr. X", "123"); | ||
_db.addUser("none", "2", "[email protected]", "Mr. Y", "123"); | ||
_db.addUser("[email protected]", "Mr. X", "123"); | ||
_db.addUser("[email protected]", "Mr. Y", "123"); | ||
|
||
assertEquals("[email protected]", _db.basicAuth(header("[email protected]", "123"))); | ||
assertNull(_db.basicAuth(header("[email protected]", "321"))); | ||
|
@@ -446,7 +446,7 @@ protected void checkPhone(String phone, int votes, int cnt10, int votes10, int c | |
|
||
@Test | ||
void testRating() { | ||
_db.createUser("domain", "ext-1", "user-1", "User 1"); | ||
_db.createUser("user-1", "User 1"); | ||
|
||
long time = 1; | ||
|
||
|