Skip to content

Commit

Permalink
Changing GitUserInterface so it doesn't conflict with existing Users
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsorst committed Jul 11, 2015
1 parent bdef603 commit 968eeaf
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 14 deletions.
4 changes: 2 additions & 2 deletions app/Resources/FOSUserBundle/views/Security/login.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "DdrGitkiBundle::scaffold.html.twig" %}

{% block body %}
{% block ddr_gitki_body %}

<div class="container">
<div class="row">
Expand Down Expand Up @@ -92,4 +92,4 @@

</div>
</div>
{% endblock body %}
{% endblock ddr_gitki_body %}
4 changes: 2 additions & 2 deletions app/Resources/FOSUserBundle/views/layout.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "DdrGitkiBundle::base.html.twig" %}
{% block container %}
{% block ddr_gitki_main_content %}
{% for type, messages in app.session.flashBag.all %}
{% for message in messages %}
<div class="alert alert-info {{ type }}">
Expand All @@ -9,4 +9,4 @@
{% endfor %}
{% block fos_user_content %}
{% endblock fos_user_content %}
{% endblock container %}
{% endblock ddr_gitki_main_content %}
6 changes: 3 additions & 3 deletions app/Resources/HWIOAuthBundle/views/Connect/login.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends 'DdrGitkiBundle::scaffold.html.twig' %}
{% block title %} - Login{% endblock %}
{% block body %}
{% block ddr_gitki_title %} - Login{% endblock ddr_gitki_title %}
{% block ddr_gitki_body %}
<div class="container">

<div class="row">
Expand Down Expand Up @@ -94,4 +94,4 @@
</div>

</div>
{% endblock %}
{% endblock ddr_gitki_body %}
4 changes: 2 additions & 2 deletions app/Resources/HWIOAuthBundle/views/layout.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "DdrGitkiBundle::base.html.twig" %}
{% block container %}
{% block ddr_gitki_main_content %}
{% block hwi_oauth_content %}
{% endblock hwi_oauth_content %}
{% endblock container %}
{% endblock ddr_gitki_main_content %}
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/Dontdrinkandroot/Gitki/WebBundle/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,21 @@ public function getGoogleId()
return $this->googleId;
}

/**
* {@inheritdoc}
*/
public function getGitUserName()
{
return $this->getUsername();
}

/**
* {@inheritdoc}
*/
public function getGitUserEmail()
{
return $this->getEmail();
}

public function __toString()
{
Expand Down

0 comments on commit 968eeaf

Please sign in to comment.