Fakultas Ilmu Komputer UI

Commit f7ca7691 authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

[#140382397] #10 Remove SSO class

parent a9bd0f5e
import React from 'react';
import expect from 'expect'; //kebutuhan dasar
import Server from "../lib/server";
import Logger from "../lib/logger";
describe('server', function () {
it('check logged in or not', function () {
let logged = Server.isLoggedIn();
document.cookie = "sessionid=John Smith; expires=Thu, 18 Dec 2013 12:00:00 UTC; path=/";
logged = Server.isLoggedIn();
expect(logged).toEqual("John Smith");
\ No newline at end of file
import React from 'react';
import { Form, Input, Button, Image } from 'semantic-ui-react';
export default class SsoLogin extends React.Component {
render = () => (
<div className="formLogin" >
<Image src="/assets/img/UI.png" size="tiny" verticalAlign="middle" /> <span> SSO Login</span>
<div className="input">
<Form.Group widths="equal">
<label htmlFor="email">Email</label>
<Input id="email" icon="user" iconPosition="left" placeholder="email" />
<Form.Group widths="equal">
<label htmlFor="password">Password</label>
<Input id="password" icon="key" iconPosition="left" placeholder="password" />
<Button fluid color="blue" >Login</Button>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment