-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add loginProvider to CurrentUserSerializer (#64)
* add loginProvider to CurrentUserSeerializer * Apply fixes from StyleCI * remove unneccessary comments --------- Co-authored-by: StyleCI Bot <[email protected]>
- Loading branch information
1 parent
df8df7d
commit 4f61917
Showing
7 changed files
with
32 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Extend from 'flarum/common/extenders'; | ||
import User from 'flarum/common/models/User'; | ||
import LinkedAccount from './models/LinkedAccount'; | ||
|
||
export default [ | ||
new Extend.Model(User) // | ||
.attribute<string>('loginProvider'), | ||
|
||
new Extend.Store() // | ||
.add('linked-accounts', LinkedAccount), | ||
]; |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
import app from 'flarum/forum/app'; | ||
import addLinkedAccountsToUserSecurityPage from './extenders/addLinkedAccountsToUserSecurityPage'; | ||
import extendLoginSignup from './extenders/extendLoginSignup'; | ||
|
||
export { default as extend } from './extend'; | ||
|
||
app.initializers.add('fof/oauth', () => { | ||
extendLoginSignup(); | ||
addLinkedAccountsToUserSecurityPage(); | ||
}); |