Page 1 of 1

Guest Login button

PostPosted: Thu Oct 09, 2008 5:53 pm
by braddyo
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

PostPosted: Thu Oct 09, 2008 7:01 pm
by jigsaw
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.

PostPosted: Thu Oct 09, 2008 7:10 pm
by braddyo
Right, and I do that for some applications. However having a guest button would be better for other applications. Thanks for the reply though.

PostPosted: Wed Oct 15, 2008 7:59 am
by kapz
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

PostPosted: Sun Oct 26, 2008 2:05 pm
by sindre_mehus
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

PostPosted: Tue May 19, 2009 12:35 pm
by RJ
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 =))