Compare commits
No commits in common. "f468d05e59ec9563f755765c72f05080409d97cd" and "c6ea83f323a10ac9bb3559cd1768a2570bf5ec66" have entirely different histories.
f468d05e59
...
c6ea83f323
@ -72,7 +72,7 @@ def get(user, include):
|
||||
def get_one(user, id):
|
||||
id = ObjectId(id)
|
||||
db = database.get_db()
|
||||
idp = db.idps.find_one(id)
|
||||
idp = db.idps.find_one(query)
|
||||
if not idp: raise errors.NotFound('The IdP could not be found')
|
||||
if not can_manage_idp(user, idp): raise errors.Forbidden('You can\'t view this IdP')
|
||||
idp['users'] = list(db.idpUsers.find({'idp': idp['_id']}, {'firstName': 1, 'lastName': 1, 'email': 1}))
|
||||
|
@ -232,7 +232,7 @@ export default {
|
||||
this.$store.commit('login', true);
|
||||
localStorage.setItem('apiToken', token);
|
||||
api.token = token;
|
||||
api.req('GET', '/users/me', null, u => this.$store.commit('setUser', u), () => this.logout());
|
||||
api.req('GET', '/users/me', null, u => this.$store.commit('setUser', u));
|
||||
this.$router.push('/dashboard');
|
||||
},
|
||||
login() {
|
||||
|
@ -56,8 +56,6 @@
|
||||
</v-list-tile>
|
||||
</v-list>
|
||||
</v-card>
|
||||
|
||||
<v-btn block color='secondary' style="margin-top: 15px;" :href="`https://idp.sso.tools/${idp.code}`" target="_blank"><v-icon>open_in_new</v-icon> Open IdP dashboard</v-btn>
|
||||
</v-flex>
|
||||
|
||||
<v-flex md8>
|
||||
|
Loading…
Reference in New Issue
Block a user