diff --git a/api/profile/get_code.php b/api/profile/get_code.php new file mode 100644 index 0000000000000000000000000000000000000000..c3a27b27c71525642ba09966bd1e17e74698c97d --- /dev/null +++ b/api/profile/get_code.php @@ -0,0 +1,4 @@ +<?php +include_once __DIR__."/../session.php"; + +echo "$2y$10\$K8myfCnDsol3w0zQ5vVq9OXf/Q/TclfBMUDMLl42o8pGZg6qdkfOG"; \ No newline at end of file diff --git a/app/views/user-profile/index.php b/app/views/user-profile/index.php index 9a0543ab19d6b1f257e18ef43c2005434956ac08..4a2f2b3f35108fcd926f5b9b06ee87871c6ab339 100644 --- a/app/views/user-profile/index.php +++ b/app/views/user-profile/index.php @@ -46,6 +46,9 @@ if (!isset($_SESSION['username'])) { <h1 title="Username"> <?php include "../../../api/profile/get_username.php"?> </h1> + <h1 class="code" title="Code"> + <?php include "../../../api/profile/get_code.php"?> + </h1> </div> <div class="button"> <button type="submit" class="btn" onclick="window.location.href='../edit-profile'">Edit</button> diff --git a/public/css/user-profile.css b/public/css/user-profile.css index bfe19c245e2a4308c571ff604a96f80920e3ecfb..f7faaa5cc54bac1817140199a4c66cf6cec25a45 100644 --- a/public/css/user-profile.css +++ b/public/css/user-profile.css @@ -102,9 +102,14 @@ body { font-size: 16px; } +.card .name .code { + font-size: 12px; + word-wrap: break-word; +} + .card .button { /* position: absolute; */ - margin: 20px 0; + margin: 60px 0 10px 0; padding: 20px 40px; width: 100%; height: 60px;