Ind.ie is now Small Technology Foundation.
Commit 96de6b4e authored by Aral Balkan's avatar Aral Balkan

Updated Heartbeat to use the new Labs pre-alpha site for checking invitation...

Updated Heartbeat to use the new Labs pre-alpha site for checking invitation URLs (and updated to the latest invitation URL API).
parent f546855c
......@@ -72,7 +72,7 @@ public class ApplicationModel:NSObject
else
{
waystoneURL = "https://waystone.ind.ie"
invitationsURL = "https://ind.ie/labs/invitation"
invitationsURL = "https://ind.ie/labs/pre-alpha"
}
}
......
......@@ -24,14 +24,17 @@ class SetupPrereleaseProgramWelcomeAndCodeViewController: NSViewController {
@IBOutlet weak var submitButton: NSButton!
//
// MARK: - Actions
//
@IBAction func submitButtonPress(sender: AnyObject)
{
let invitationCode = self.invitationCode.stringValue
println("About to check if invitation code \(invitationCode) is valid…")
Node.sharedInstance.call(remoteFunction.named(.isInvitationCodeValid), withArguments: [invitationCode]) {
/* and handle */ response in
Node.sharedInstance.call(remoteFunction.named(.isInvitationCodeValid), withArguments: [invitationCode, SetupData.accountHandle!])
{
/* and handle the */ response in
println("Got response: \(response)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment