Skip to content

Commit

Permalink
#295 -- Ajustar mecanismo de autenticação padrão
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonmoura committed Nov 21, 2023
1 parent 554e340 commit 567978a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions server/pub/profile.php
Expand Up @@ -47,11 +47,8 @@
<input type="hidden" name="source" value="<?php echo ($isUser) ? trim($usr->getSource()) : 'default'; ?>" />
<input type="hidden" name="autoconn" value="" />
<div class="input-field col s12 center-align">
<?php if ($usr->getGender() == "M") : ?>
<img src="<?php echo RELATIVE_PATH; ?>/images/<?php echo $_SESSION["skin"]; ?>/male.svg" alt="Avatar User" class="circle" width="150">
<?php else : ?>
<img src="<?php echo RELATIVE_PATH; ?>/images/<?php echo $_SESSION["skin"]; ?>/female.svg" alt="Avatar User" class="circle" width="150">
<?php endif; ?>
<?php $avatar = ( $usr->getGender() == "M" ) ? 'male' : 'female'; ?>
<img src="<?php echo RELATIVE_PATH; ?>/images/<?php echo $_SESSION["skin"]; ?>/<?php echo $avatar; ?>.svg" alt="Avatar User" class="circle" width="150">
</div>
<div class="form-group">
<div class="input-field col s12 m6">
Expand Down

0 comments on commit 567978a

Please sign in to comment.