function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mike ElhardMike Elhard 

Login Flow using Visualforce, help with controller and other basics

I've attempted to make a login flow using a Visualforce page. I'm learning as I go and focusing on what I've been tasked with; some text, a picture, and a button to proceed. 

Here's my Visualforce page so far;
<apex:page showHeader="false" >
    <h1>Salesforce Org</h1>
          <apex:form >
              <apex:image url="{!$Resource.aaa1imagetest}" width="50" height="50"/>
          </apex:form>
  
          <apex:form >
              <apex:commandButton action="{URLFOR('/home/home.jsp')}" value="Go to Salesforce" />
          </apex:form>
</apex:page>
^ I think that referenced a Class at 1 point but now it's gone. I must have saved when I didn't mean to.

I have this setup in my sandbox to 1 user so I can test it. After I login as the user this page launches successfully but when I click the button "Go To Salesforce" I get the error Formula Expression is required on the action attributes. 

My Apex Class looks like this;
public with sharing class VFLoginFlowController {

    public PageReference FinishLoginFlowStartUrl() {
        return null;
    }


    public PageReference FinishLoginFlowHome() {
        return null;
    }

}

I'd like the button to direct the user to their home page. Any suggestions or tips?