<commit_before>var util = require('util');

module.exports.post = function post(next) {
  console.log(this.session);

  if (this.session.id === this.id) { //do not persist sessions created with this request
    this.reply303("/login");
  } else {
    var user = this.db.one("select * from work_users where email=:email",
      {email: this.context.email});
    if (this.work.auth.check(this.context.pw, user.hash)) {
      this.auth.login(user);
      this.reply303("/");<commit_msg>fix auth<commit_after>var util = require('util');

module.exports.post = function post(next) {
  console.log(this.session);

  if (this.session.id === this.id) { //do not persist sessions created with this request
    this.reply303("/login");
  } else {
    var user = this.db.one("select * from work_users where email=:email",
      {email: this.context.email});
    if (user && this.work.auth.check(this.context.pw, user.hash)) {
      this.auth.login(user);
      this.reply303("/");
{'fraction_non_alphanumeric': 0.1692466460268318, 'fraction_numerical': 0.01238390092879257, 'mean_word_length': 3.490740740740741, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '912395', 'n_tokens_mistral': 320, 'n_tokens_neox': 307, 'n_words': 69}