Guest Login button

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Guest Login button

Postby braddyo » Thu Oct 09, 2008 5:53 pm

Hello Sindre,

Just thought of this today, and it's not really high priority, but would be good for some limited applications.

Having a guest login button at the login screen as an alternative to the regular login would be cool. The admin could set what the restrictions are, which are obvious to the guest when logging in, such as whether the features are available or not such as streaming, downloading, etc, and what bitrate is available for downloading, etc.

Bradford
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby jigsaw » Thu Oct 09, 2008 7:01 pm

If you want to have a guest account you may the tip from Sindre at this post and just sett the restrictions on the guest-user to whatever you would like.
Anyone following that link will then be automatically logged in with the guest-account.
If you want it to be a link from the login page you could just add it to the front login-page.
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby braddyo » Thu Oct 09, 2008 7:10 pm

Right, and I do that for some applications. However having a guest button would be better for other applications. Thanks for the reply though.
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby kapz » Wed Oct 15, 2008 7:59 am

Hey Braddyo, I've asked for a Guest Mode to use Subsonic as a showcase of my music collection too.

Sindre has been very helpful by adding the new "authorized to stream" permission. I plan to reuse the Guest account and prefer the user be unable to access the Settings panel. In the next version (v3.5) this should be accomplished by changing the following code...

From...
Code: Select all
<td style="width:40pt;padding-right:10pt"><a href="settings.view?" target="main"><img src="<spring:theme code="settingsImage"/>" title="${settings}" alt="${settings}"/><br/>${settings}</a></td>

To...
Code: Select all
<c:if test="${model.user.streamRole}">
<td style="width:40pt;padding-right:10pt"><a href="settings.view?" target="main"><img src="<spring:theme code="settingsImage"/>" title="${settings}" alt="${settings}"/><br/>${settings}</a></td>
</c:if>

Hope this helps you. Thx Sindre
Paid Subsonic user
----
Love my unRaid (~9.5TB): [url=http://lime-technology.com/forum/index.php?topic=2031.msg40351#msg40351]Pictures Here (Reply #82)[/url]
User avatar
kapz
 
Posts: 124
Joined: Wed Jun 21, 2006 7:23 pm

Postby sindre_mehus » Sun Oct 26, 2008 2:05 pm

Just a little update: I'm strongly considering improving the support for guest users in a later version of Subsonic.

What I'm thinking of is adding a new permission "User is allowed to change settings and password" which can be turned off for guest accounts. This would then hide the Settings button etc.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby RJ » Tue May 19, 2009 12:35 pm

kapz wrote:By changing the following code...
From...
Code: Select all
<td style="width:40pt;padding-right:10pt"><a href="settings.view?" target="main"><img src="<spring:theme code="settingsImage"/>" title="${settings}" alt="${settings}"/><br/>${settings}</a></td>

To...
Code: Select all
<c:if test="${model.user.streamRole}">
<td style="width:40pt;padding-right:10pt"><a href="settings.view?" target="main"><img src="<spring:theme code="settingsImage"/>" title="${settings}" alt="${settings}"/><br/>${settings}</a></td>
</c:if>



Where edit this code? I can't find any files to edit :(
P.S. I'm from Ukraine, so sorry for my english =))
RJ
 
Posts: 1
Joined: Tue May 19, 2009 12:32 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 3 guests