Skip to content

Instantly share code, notes, and snippets.

@ryanguest
Created October 16, 2012 22:09
Show Gist options
  • Save ryanguest/3902365 to your computer and use it in GitHub Desktop.
Save ryanguest/3902365 to your computer and use it in GitHub Desktop.
Community login page [Visualforce]
apex:page controller="SiteLoginController" id="loginComponent" showheader="false" standardStylesheets="false">
<h1 style="color: gray"> Community Login </h1>
<apex:form id="loginForm" forceSSL="true">
<apex:outputPanel layout="block">
<apex:pageMessages id="error"/>
<apex:outputLabel value="{!$Label.site.username}" for="username"/>
<apex:inputText id="username" value="{!username}"/>
<apex:outputLabel value="{!$Label.site.password}" for="password"/>
<apex:inputSecret id="password" value="{!password}"/>
<apex:outputText value=""/>
<apex:commandButton action="{!login}" value="{!$Label.site.login_button}" id="loginButton"/>
</apex:outputPanel>
</apex:form>
If you're an employee, you can go here:
<a href="https://login.salesforce.com//servlet/networks/session/create?portal=060D00000000XYT&amp;site=0DMD0000000054I&amp;inst=D">Log in here</a>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment