음 코드 정리 해야되는데
This commit is contained in:
parent
2464a48b1c
commit
cec079de94
|
@ -6,6 +6,6 @@ $(window).on("backstretch.after", function () {
|
|||
window.NProgress.done();
|
||||
});
|
||||
jQuery(document).ready(function () {
|
||||
var pageImage = "/static/error/404.jpg";
|
||||
var pageImage = "static/error/404.jpg";
|
||||
jQuery.backstretch(pageImage, {speed: 400});
|
||||
});
|
||||
|
|
|
@ -1,15 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<!--if lt IE 7<html class="no-js lt-ie9 lt-ie8 lt-ie7">
|
||||
-->
|
||||
<!--if IE 7<html class="no-js lt-ie9 lt-ie8">
|
||||
-->
|
||||
<!--if IE 8<html class="no-js lt-ie9">
|
||||
-->
|
||||
<!-- [if gt IE 8] <!-->
|
||||
<html lang="en" class="no-js">
|
||||
<!-- <![endif]-->
|
||||
<head>
|
||||
|
||||
{% include "header.html" %}
|
||||
{% block head_add_header %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body class="nav-md">
|
||||
{% block body %}{% endblock %}
|
||||
|
||||
<script>
|
||||
NProgress.done();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,5 +1,5 @@
|
|||
<footer>
|
||||
<div class="">
|
||||
<div class="container">
|
||||
<p class="pull-right">Gentelella Alela! a Bootstrap 3 template by <a href="https://colorlib.com">Colorlib</a>. |
|
||||
<span class="lead"> <i class="fa fa-paw"></i> Gentelella Alela!</span>
|
||||
</p>
|
||||
|
|
|
@ -4,39 +4,39 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>{% block title %}Mnemonics{% endblock %}-Amuz.es</title>
|
||||
<link rel="shortcut icon" href="/static/favicon/images/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="/static/favicon/images/favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="static/favicon/images/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="static/favicon/images/favicon.ico" type="image/x-icon">
|
||||
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="/static/favicon/images/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="/static/favicon/images/apple-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="/static/favicon/images/apple-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="/static/favicon/images/apple-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="/static/favicon/images/apple-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="/static/favicon/images/apple-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="/static/favicon/images/apple-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="/static/favicon/images/apple-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/images/apple-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/static/favicon/images/android-icon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon/images/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="/static/favicon/images/favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon/images/favicon-16x16.png">
|
||||
<link rel="manifest" href="/static/favicon/manifest.json">
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="static/favicon/images/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="static/favicon/images/apple-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="static/favicon/images/apple-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="static/favicon/images/apple-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="static/favicon/images/apple-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="static/favicon/images/apple-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="static/favicon/images/apple-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="static/favicon/images/apple-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="static/favicon/images/apple-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="static/favicon/images/android-icon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="static/favicon/images/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="static/favicon/images/favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="static/favicon/images/favicon-16x16.png">
|
||||
<link rel="manifest" href="static/favicon/manifest.json">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="msapplication-TileImage" content="/static/favicon/images/ms-icon-144x144.png">
|
||||
<meta name="msapplication-TileImage" content="static/favicon/images/ms-icon-144x144.png">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
|
||||
<!--Import Google Icon Font-->
|
||||
<link type="text/css" rel="stylesheet" href="/static/normalize.css-3.0.3/normalize.css" rel="stylesheet">
|
||||
<link type="text/css" rel="stylesheet" href="static/normalize.css-3.0.3/normalize.css" rel="stylesheet">
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="/static/material-design-icons-2.2.0/material-icons.css" rel="stylesheet">
|
||||
<link type="text/css" rel="stylesheet" href="/static/animate.css-3.5.1/animate.min.css" rel="stylesheet">
|
||||
<link type="text/css" rel="stylesheet" href="/static/nprogress-0.2.0/nprogress.css" rel="stylesheet">
|
||||
<link type="text/css" rel="stylesheet" href="static/material-design-icons-2.2.0/material-icons.css" rel="stylesheet">
|
||||
<link type="text/css" rel="stylesheet" href="static/animate.css-3.5.1/animate.min.css" rel="stylesheet">
|
||||
<link type="text/css" rel="stylesheet" href="static/nprogress-0.2.0/nprogress.css" rel="stylesheet">
|
||||
|
||||
<!--Import materialize.css-->
|
||||
<link type="text/css" rel="stylesheet" href="/static/materialize-0.97.5/css/materialize.min.css" media="screen,projection"/>
|
||||
<link type="text/css" rel="stylesheet" href="static/materialize-0.97.5/css/materialize.min.css" media="screen,projection"/>
|
||||
|
||||
<script type="text/javascript" src="/static/nprogress-0.2.0/nprogress.js"></script>
|
||||
<script type="text/javascript" src="static/nprogress-0.2.0/nprogress.js"></script>
|
||||
<script>
|
||||
NProgress.configure({ showSpinner: false });
|
||||
NProgress.start();
|
||||
|
@ -45,21 +45,21 @@
|
|||
|
||||
|
||||
|
||||
<script type="text/javascript" src="/static/es5-shim-4.5.7/es5-shim.min.js"></script>
|
||||
<script type="text/javascript" src="/static/es5-shim-4.5.7/es5-sham.min.js"></script>
|
||||
<script type="text/javascript" src="/static/json3-3.3.2/json3.min.js"></script>
|
||||
<script type="text/javascript" src="/static/es6-shim-0.35.0/es6-shim.min.js"></script>
|
||||
<script type="text/javascript" src="/static/es6-shim-0.35.0/es6-sham.min.js"></script>
|
||||
<script type="text/javascript" src="static/es5-shim-4.5.7/es5-shim.min.js"></script>
|
||||
<script type="text/javascript" src="static/es5-shim-4.5.7/es5-sham.min.js"></script>
|
||||
<script type="text/javascript" src="static/json3-3.3.2/json3.min.js"></script>
|
||||
<script type="text/javascript" src="static/es6-shim-0.35.0/es6-shim.min.js"></script>
|
||||
<script type="text/javascript" src="static/es6-shim-0.35.0/es6-sham.min.js"></script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script type="text/javascript" src="/static/html5shiv-3.7.3/html5shiv.min.js"></script>
|
||||
<script type="text/javascript" src="/static/respond-1.4.2/respond.min.js"></script>
|
||||
<script type="text/javascript" src="/static/jquery-1.12.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="static/html5shiv-3.7.3/html5shiv.min.js"></script>
|
||||
<script type="text/javascript" src="static/respond-1.4.2/respond.min.js"></script>
|
||||
<script type="text/javascript" src="static/jquery-1.12.1/jquery.min.js"></script>
|
||||
<![endif]-->
|
||||
<!--[if (gt IE 8)|!(IE)]><!-->
|
||||
<script type="text/javascript" src="/static/jquery-2.2.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="static/jquery-2.2.1/jquery.min.js"></script>
|
||||
<!--<![endif]-->
|
||||
|
||||
<script type="text/javascript" src="/static/lodash-4.6.1/lodash.min.js"></script>
|
||||
<script type="text/javascript" src="static/lodash-4.6.1/lodash.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="/static/materialize-0.97.5/js/materialize.min.js"></script>
|
||||
<script type="text/javascript" src="static/materialize-0.97.5/js/materialize.min.js"></script>
|
|
@ -1,103 +1,12 @@
|
|||
<nav class="" role="navigation">
|
||||
<div class="nav toggle">
|
||||
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
|
||||
<div class="nav-wrapper container"><a id="logo-container" href="." class="brand-logo">Account Service</a>
|
||||
<ul class="right hide-on-med-and-down">
|
||||
<li><a href="#">Navbar Link</a></li>
|
||||
</ul>
|
||||
|
||||
<ul id="nav-mobile" class="side-nav" style="left: -250px;">
|
||||
<li><a href="#">Navbar Link</a></li>
|
||||
</ul>
|
||||
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
|
||||
</div>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="">
|
||||
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
<img src="static/images/img.jpg" alt="">John Doe
|
||||
<span class=" fa fa-angle-down"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-usermenu animated fadeInDown pull-right">
|
||||
<li><a href="javascript:;"> Profile</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<span class="badge bg-red pull-right">50%</span>
|
||||
<span>Settings</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">Help</a>
|
||||
</li>
|
||||
<li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li role="presentation" class="dropdown">
|
||||
<a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<span class="badge bg-green">6</span>
|
||||
</a>
|
||||
<ul id="menu1" class="dropdown-menu list-unstyled msg_list animated fadeInDown" role="menu">
|
||||
<li>
|
||||
<a>
|
||||
<span class="image">
|
||||
<img src="static/images/img.jpg" alt="Profile Image" />
|
||||
</span>
|
||||
<span>
|
||||
<span>John Smith</span>
|
||||
<span class="time">3 mins ago</span>
|
||||
</span>
|
||||
<span class="message">
|
||||
Film festivals used to be do-or-die moments for movie makers. They were where...
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>
|
||||
<span class="image">
|
||||
<img src="static/images/img.jpg" alt="Profile Image" />
|
||||
</span>
|
||||
<span>
|
||||
<span>John Smith</span>
|
||||
<span class="time">3 mins ago</span>
|
||||
</span>
|
||||
<span class="message">
|
||||
Film festivals used to be do-or-die moments for movie makers. They were where...
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>
|
||||
<span class="image">
|
||||
<img src="static/images/img.jpg" alt="Profile Image" />
|
||||
</span>
|
||||
<span>
|
||||
<span>John Smith</span>
|
||||
<span class="time">3 mins ago</span>
|
||||
</span>
|
||||
<span class="message">
|
||||
Film festivals used to be do-or-die moments for movie makers. They were where...
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>
|
||||
<span class="image">
|
||||
<img src="static/images/img.jpg" alt="Profile Image" />
|
||||
</span>
|
||||
<span>
|
||||
<span>John Smith</span>
|
||||
<span class="time">3 mins ago</span>
|
||||
</span>
|
||||
<span class="message">
|
||||
Film festivals used to be do-or-die moments for movie makers. They were where...
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="text-center">
|
||||
<a>
|
||||
<strong><a href="inbox.html">See All Alerts</strong>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
|
@ -2,117 +2,41 @@
|
|||
|
||||
|
||||
{% block body %}
|
||||
|
||||
{% include "layout/topnav.html" %}
|
||||
<div class="container body">
|
||||
<div class="main_container">
|
||||
|
||||
<div class="col-md-3 left_col">
|
||||
<div class="left_col scroll-view">
|
||||
{% include "layout/sidebar.html" %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- top navigation -->
|
||||
<div class="top_nav">
|
||||
<div class="nav_menu">
|
||||
{% include "layout/topnav.html" %}
|
||||
</div>
|
||||
</div>
|
||||
<!-- /top navigation -->
|
||||
|
||||
<!-- page content -->
|
||||
<div class="right_col" role="main">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-offset-4 col-md-4 col-sm-offset-3 col-sm-6 col-xs-12">
|
||||
|
||||
<a class="hiddenanchor" id="toregister"></a>
|
||||
<a class="hiddenanchor" id="tologin"></a>
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="login" class="animate form">
|
||||
<section class="login_content">
|
||||
<div class="col s12 m6 offset-m3">
|
||||
<div class="card-panel z-depth-5">
|
||||
<h5>Authenticate Required</h5>
|
||||
<form>
|
||||
<h1>Login Form</h1>
|
||||
|
||||
<div>
|
||||
<input type="text" class="form-control" placeholder="Username" required=""/>
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<input id="email" type="email" class="validate">
|
||||
<label for="email">Email</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="password" class="form-control" placeholder="Password" required=""/>
|
||||
</div>
|
||||
<div>
|
||||
<a class="btn btn-default submit" href="index.html">Log in</a>
|
||||
<a class="reset_pass" href="#">Lost your password?</a>
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<input id="password" type="password" class="validate">
|
||||
<label for="password">Password</label>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="separator">
|
||||
|
||||
<p class="change_link">New to site?
|
||||
<a href="#toregister" class="to_register"> Create Account </a>
|
||||
</p>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<br/>
|
||||
|
||||
<div>
|
||||
<h1><i class="fa fa-paw" style="font-size: 26px;"></i> Gentelella Alela!
|
||||
</h1>
|
||||
|
||||
<p>©2015 All Rights Reserved. Gentelella Alela! is a Bootstrap 3 template.
|
||||
Privacy and Terms</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="input-field col s12 right-align">
|
||||
<button class="btn waves-effect waves-light" type="submit" name="action">Submit
|
||||
<i class="material-icons right">send</i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<!-- form -->
|
||||
</section>
|
||||
</div>
|
||||
<div id="register" class="animate form">
|
||||
<section class="login_content">
|
||||
<form>
|
||||
<h1>Create Account</h1>
|
||||
|
||||
<div>
|
||||
<input type="text" class="form-control" placeholder="Username" required=""/>
|
||||
</div>
|
||||
<div>
|
||||
<input type="email" class="form-control" placeholder="Email" required=""/>
|
||||
</div>
|
||||
<div>
|
||||
<input type="password" class="form-control" placeholder="Password" required=""/>
|
||||
</div>
|
||||
<div>
|
||||
<a class="btn btn-default submit" href="index.html">Submit</a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="separator">
|
||||
|
||||
<p class="change_link">Already a member ?
|
||||
<a href="#tologin" class="to_register"> Log in </a>
|
||||
</p>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<br/>
|
||||
|
||||
<div>
|
||||
<h1><i class="fa fa-paw" style="font-size: 26px;"></i> Gentelella Alela!
|
||||
</h1>
|
||||
|
||||
<p>©2015 All Rights Reserved. Gentelella Alela! is a Bootstrap 3 template.
|
||||
Privacy and Terms</p>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form -->
|
||||
</section>
|
||||
<!-- content -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /page content -->
|
||||
</div>
|
||||
</div>
|
||||
{% include "layout/footer.html" %}
|
||||
|
||||
{% endblock %}
|
|
@ -0,0 +1,51 @@
|
|||
{% extends "layout/base.html" %}
|
||||
|
||||
|
||||
{% block body %}
|
||||
{% include "layout/topnav.html" %}
|
||||
<div class="container body">
|
||||
<div class="card-panel z-depth-5">
|
||||
<h5>Basic User Profile</h5>
|
||||
<div class="row">
|
||||
<div class="col s2">
|
||||
<img class="z-depth-5 circle responsive-img materialboxed" width="128"
|
||||
src="http://www.gravatar.com/avatar/508aa4ce6833d58bef7aa5b107b93da2?s=512">
|
||||
</div>
|
||||
|
||||
<div class="col s10">
|
||||
</div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td data-field="id"></td>
|
||||
|
||||
<th data-field="name">Uid</th>
|
||||
<td data-field="price">spi-ca</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th data-field="id">Name</th>
|
||||
<td>$0.87</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Alan</td>
|
||||
<td>$3.76</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Lollipop</td>
|
||||
<td>$7.00</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- /page content -->
|
||||
</div>
|
||||
{% include "layout/footer.html" %}
|
||||
|
||||
{% endblock %}
|
|
@ -1,8 +1,8 @@
|
|||
{% extends "layout/base.html" %}
|
||||
{% block head_add_header %}
|
||||
<link type="text/css" rel="stylesheet" href="/static/error/404.css" rel="stylesheet">
|
||||
<script type="text/javascript" src="/static/jquery-backstretch-2.0.4/jquery.backstretch.min.js"></script>
|
||||
<script type="text/javascript" src="/static/error/404.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="static/error/404.css" rel="stylesheet">
|
||||
<script type="text/javascript" src="static/jquery-backstretch-2.0.4/jquery.backstretch.min.js"></script>
|
||||
<script type="text/javascript" src="static/error/404.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
{% block body %}
|
||||
|
|
9
main.go
9
main.go
|
@ -53,8 +53,9 @@ func main() {
|
|||
r.NoRoute(recovery.RecoveryHttpError(http.StatusNotFound))
|
||||
r.NoMethod(recovery.RecoveryHttpError(http.StatusMethodNotAllowed))
|
||||
|
||||
suburl:="/account"
|
||||
// suburl process
|
||||
path := r.Group("/")
|
||||
path := r.Group(suburl)
|
||||
path.Use(recovery.RecoveryHTML())
|
||||
// handlers
|
||||
api := path.Group("/api")
|
||||
|
@ -75,7 +76,10 @@ func main() {
|
|||
}))
|
||||
api.Use(session.Sessions("mnemonics", store))
|
||||
|
||||
api.GET("/auth", route.Me)
|
||||
|
||||
api.GET("/auth", route.Authenticate)
|
||||
path.GET("/login", route.Login)
|
||||
path.GET("/me", route.Me)
|
||||
path.GET("/self", route.Self)
|
||||
path.GET("/metric", route.Metric)
|
||||
path.GET("/health", func(c *gin.Context) {
|
||||
|
@ -94,7 +98,6 @@ func main() {
|
|||
c.Redirect(http.StatusMovedPermanently, "/static/favicon/browserconfig.xml")
|
||||
})
|
||||
|
||||
path.GET("/login", route.Login)
|
||||
path.GET("/", route.Index)
|
||||
|
||||
if gin.IsDebugging() {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
//https://github.com/boombuler/barcode
|
||||
)
|
||||
|
||||
func Me(c *gin.Context) {
|
||||
func Authenticate(c *gin.Context) {
|
||||
content := gin.H{"Hello": "World"}
|
||||
|
||||
sess := session.Default(c)
|
||||
|
@ -19,8 +19,6 @@ func Me(c *gin.Context) {
|
|||
count = v.(int)
|
||||
count += 1
|
||||
}
|
||||
sess.Set("count", count)
|
||||
sess.Save()
|
||||
|
||||
// util.Log().Errorf(" sess : %d", count)
|
||||
|
||||
|
|
|
@ -11,3 +11,7 @@ import (
|
|||
func Login(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "login.html", template.Context{})
|
||||
}
|
||||
|
||||
func Me(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "me.html", template.Context{})
|
||||
}
|
||||
|
|
|
@ -157,8 +157,8 @@ func NewAccoauntSource() AccountSource {
|
|||
filter: "|((objectClass=groupOfNames)(objectClass=groupOfUniqueNames))",
|
||||
uniqueAttributeName: "cn"}
|
||||
return &ldapSource{
|
||||
host: "keeper.amuz.es",
|
||||
port: 636,
|
||||
host: "127.0.0.1",
|
||||
port: 6360,
|
||||
user: user,
|
||||
group: group}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue