Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14204291 authored by theronakpatel's avatar theronakpatel
Browse files

added more usernams for test

parent fa05581a
Loading
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -270,16 +270,17 @@ class AccountController extends Controller {
	 */
	public function tempApiCheck() {
		try {
			$username = 'ronakp1';
			$usernames = ['ronakp1', 'ronakp2', 'ronakp3'];
			foreach ($usernames as $username) {
				if ($this->userService->isUsernameTaken($username)) {
				echo 'username taken';
					echo $username . ' username taken<br>';
				} else {
				echo 'username nottaken';
					echo $username . ' username is not taken<br>';
				}
			}
		} catch (Exception $e) {
			echo 'username exception issue. '.$e->getMessage();
			echo 'Username exception issue: ' . $e->getMessage();
		}
		die;
	}
	/**
	 * Check if a username is available.