Example #1
0
 public function addToOrganisation($token, GithubUsernameRequest $request)
 {
     $entry = $this->entry->findByEmail($request->get('email'));
     if (!$entry) {
         return redirect()->back()->withInput()->with('error', 'No Entry found with this email.');
     }
     if (!$this->isValidEntry($token, $entry)) {
         return redirect()->back()->withInput()->with('error', 'Not a valid submission.');
     }
     $this->githubService->addTeamMember($request->get('username'));
     $this->markActivationAsCompleted($token, $entry);
     $this->sendConfirmationEmail($entry);
     return redirect()->back()->with('success', 'You\'have been invited to the AsgardCms Github Organisation.');
 }
Example #2
0
 public function beta()
 {
     $user = $this->auth->check();
     $entry = $this->entry->findByEmail($user->email);
     return view('profile::public.beta-access', compact('user', 'entry'));
 }