Fix styling
This commit is contained in:
		 Thijmen
					Thijmen
				
			
				
					committed by
					
						![github-actions[bot]](/assets/img/avatar_default.png) github-actions[bot]
						github-actions[bot]
					
				
			
			
				
	
			
			
			![github-actions[bot]](/assets/img/avatar_default.png) github-actions[bot]
						github-actions[bot]
					
				
			
						parent
						
							41fb6a1fc9
						
					
				
				
					commit
					d86274cc37
				
			| @@ -17,41 +17,49 @@ class Waitlist extends Controller | ||||
|         try { | ||||
|             $found = ModelsWaitlist::where('uuid', $confirmation_code)->where('email', $email)->first(); | ||||
|             if ($found) { | ||||
|                 if (!$found->verified) { | ||||
|                 if (! $found->verified) { | ||||
|                     if ($found->created_at > now()->subMinutes(config('constants.waitlist.expiration'))) { | ||||
|                         $found->verified = true; | ||||
|                         $found->save(); | ||||
|                         send_internal_notification('Waitlist confirmed: ' . $email); | ||||
|                         send_internal_notification('Waitlist confirmed: '.$email); | ||||
| 
 | ||||
|                         return 'Thank you for confirming your email address. We will notify you when you are next in line.'; | ||||
|                     } else { | ||||
|                         $found->delete(); | ||||
|                         send_internal_notification('Waitlist expired: ' . $email); | ||||
|                         send_internal_notification('Waitlist expired: '.$email); | ||||
| 
 | ||||
|                         return 'Your confirmation code has expired. Please sign up again.'; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
| 
 | ||||
|             return redirect()->route('dashboard'); | ||||
|         } catch (Exception $e) { | ||||
|             send_internal_notification('Waitlist confirmation failed: ' . $e->getMessage()); | ||||
|             send_internal_notification('Waitlist confirmation failed: '.$e->getMessage()); | ||||
|             ray($e->getMessage()); | ||||
| 
 | ||||
|             return redirect()->route('dashboard'); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     public function cancel(Request $request) | ||||
|     { | ||||
|         $email = request()->get('email'); | ||||
|         $confirmation_code = request()->get('confirmation_code'); | ||||
|         try { | ||||
|             $found = ModelsWaitlist::where('uuid', $confirmation_code)->where('email', $email)->first(); | ||||
|             if ($found && !$found->verified) { | ||||
|             if ($found && ! $found->verified) { | ||||
|                 $found->delete(); | ||||
|                 send_internal_notification('Waitlist cancelled: ' . $email); | ||||
|                 send_internal_notification('Waitlist cancelled: '.$email); | ||||
| 
 | ||||
|                 return 'Your email address has been removed from the waitlist.'; | ||||
|             } | ||||
| 
 | ||||
|             return redirect()->route('dashboard'); | ||||
|         } catch (Exception $e) { | ||||
|             send_internal_notification('Waitlist cancellation failed: ' . $e->getMessage()); | ||||
|             send_internal_notification('Waitlist cancellation failed: '.$e->getMessage()); | ||||
|             ray($e->getMessage()); | ||||
| 
 | ||||
|             return redirect()->route('dashboard'); | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user