Skip to content
This repository was archived by the owner on Sep 25, 2022. It is now read-only.

Commit a53e563

Browse files
author
flx5
committed
Added message to settings when the user hasn't authenticated any apps
1 parent 516a302 commit a53e563

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ This is why InMaFSS is aimed to process most data upon the server and only give
1313
This release should run stable, but there are lots of things to be improved.
1414
The features capable of being improved are:
1515

16-
+ OAuth User Panel (If the user hasn't authenticated any consumer, the page looks quite empty :) )
1716
+ Improve the API and add an endpoint to get some information about the user (like username, class, usertype, etc.)
1817
+ Design?
1918

inc/lang/de.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@
329329
$loc['information'] = "Informationen";
330330
$loc['mensa'] = "Informationen";
331331
$loc['menu'] = "Menü";
332-
$loc['delete'] = "Löschen";
332+
$loc['delete'] = "Löschen";
333+
$loc['no.consumer'] = "Du hast noch keine Anwendung zugelassen.";
333334
break;
334335

335336
case 'scopes':

inc/tpl/user/settings.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<?php
66
$apps = OAuthHelper::GetConsumers(Authorization::GetUserID('LDAP'));
77

8+
if(count($apps) == 0)
9+
echo '<h4>'.lang()->loc('no.consumer', false).'</h4>';
10+
811
foreach ($apps as $id => $scopes) {
912
$name = OAuthHelper::GetConsumerName($id);
1013

0 commit comments

Comments
 (0)